Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Triggersize and performance.?

Discussion in 'Scripting' started by tawdry, Mar 9, 2015.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Does size really matter?. If i have a OnTriggerEnter that encompasses almost the whole world (1800x1800) or a little trigger (20x20) both with the same trigger condition but neither as yet been penetrated by the catalyst will the big one require more processing power than the smaller one?
     
  2. Suddoha

    Suddoha

    Joined:
    Nov 9, 2013
    Posts:
    2,824
    I doubt, because it should always be the same procedure for checking the bounds, at least for primitive ones. One thing that happens is that you may have more OnTriggerXXX calls, but that's most likely something you desire when having a big collider.
    But the more complex the trigger, the more it takes to calculate it though.

    Correct me if i'm wrong. :p