Creating a trigger area
Posted: Thu Jun 30, 2011 9:10 am
Maybe this is a stupid question, but I can't figure it out.
How can I define a trigger area?
I mean, defining a Box that do not affect physics in any way, but when another object intersects it, it triggers an event.
I read the documentation relative to Collision Event and Rules and I tried to set Collision Rules on the Box but NoBroadPhase and NoNarrowPhasePairs don't fire any event. The other instead affect physics (I have a dynamic sphere falling on the "trigger Box"). Even the NoSolver rule makes the Box act as a constraint, stopping my sphere.
Maybe I should set Collision Rules even on the other objects, or create CollisionPairs?
Thanks for your answers.
How can I define a trigger area?
I mean, defining a Box that do not affect physics in any way, but when another object intersects it, it triggers an event.
I read the documentation relative to Collision Event and Rules and I tried to set Collision Rules on the Box but NoBroadPhase and NoNarrowPhasePairs don't fire any event. The other instead affect physics (I have a dynamic sphere falling on the "trigger Box"). Even the NoSolver rule makes the Box act as a constraint, stopping my sphere.
Maybe I should set Collision Rules even on the other objects, or create CollisionPairs?
Thanks for your answers.