- Home /
Question by
SunnyChow · Dec 19, 2013 at 10:41 AM ·
physicscolliderprogramming
how to instantly check if two colliders overlaying?
Let's say i have two colliders (any type of collider). I don't want to make a rigidbody so that physics system can detect collision in next FixedUpdate and return the event to my other script. I want to immediately know if they are overlaying. What should i do?
Comment
Answer by KellyThomas · Dec 19, 2013 at 11:25 AM
I guess if you don't care about false positives you could use `Collider.bounds()`.
Why are you concerned about avoiding the physics system? After all it will call the appropriate methods the instant a collision is detected.