- Home /
Question by
Peange · Jul 15, 2010 at 11:27 AM ·
collisionphysicsoncollisionenter
Collision Query
Hi folks, I've got a basic understanding of collisions, but what I want to know is this:
Can I make an object pass through another, but still have OnCollisionEnter called?
Comment
Best Answer
Answer by andrew · Jul 15, 2010 at 11:47 AM
hi,
it sounds like what you want are trigger events. You need to set your Collider to 'isTrigger = true' (either via the check box in the collider component or via scripting).
Then they won't actually call Collision events, but rather 'trigger' events when another object passes through them. (eg OnTriggerEnter, OnTriggerExit and OnTriggerStay)