Search Unity

How Expensive is Physics.OverlapBox on Mobile ?

Discussion in 'Scripting' started by Deleted User, Feb 10, 2020.

  1. Deleted User

    Deleted User

    Guest

    Hi,

    I'm spawning in lots of objects / obstacles over time that my player has to avoid, as more objects are spawned the likelihood of overlaps become more common, I can avoid this by using Physics.OverlapBox to detect overlaps, but this would mean detecting for each spawned object, question is, how 'expensive' would this be on a mobile device to do ?
     
    Last edited by a moderator: Feb 10, 2020