OnTriggerEnter alternative which works with out physics system?

  • I´ve got 10k+ object in my scene. Each object has a rigidbody (iskinematic) and a sphere collider on it. Object can be shot at.

  • Rigidbody collider are there only so i´m able to access it´s components via an external raycast/broadcastmessage.

  • For performance reasons, i´m trying to get rid of all rigidbodies/colliders but OnTriggerEnter/Raycast only to works with a collider.

  • Now i´m trying to find a way to access a specific gameObject´s component, with out relaying on the physics system.

Any ideas? Thanks in advance!

quadtree

@hippocoder Ah yes, that makes sense, thanks for the pointer! Anybody has any links on quadtree in unity get me started? Searching the forums not successful so far…

here is a pointer i found: How can I optimize my range tests? - Questions & Answers - Unity Discussions