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.
Creating a trigger area
Re: Creating a trigger area
NoSolver should prevent any collision response while still permitting the creation of contacts. That is the proper collision rule for trigger volumes based on collision shapes.Even the NoSolver rule makes the Box act as a constraint, stopping my sphere.
Keep in mind that setting a Specific rule between two entities will override the personal and group rules. In isolation, just setting a collidable's CollisionRules.Personal to NoSolver should do exactly what you want.