How i can define a trigger with BEPU
Posted: Fri Apr 08, 2011 2:48 pm
Hi everyone,
I don't know really what is the best way to define a trigger box with BEPU. I try to play a music when a ball collide with this trigger box but no physic effect need to be computed.
I've try to define a "Box" Object and create my own method called on the "CreatingPair" event and my method modify the CollisionRule from Defer to NoBroadPhase.
It works but the sender collidable object is stopped for a few moments.
I think is not the best solution. Do you have any idea ?
Thank you in advance.
I don't know really what is the best way to define a trigger box with BEPU. I try to play a music when a ball collide with this trigger box but no physic effect need to be computed.
I've try to define a "Box" Object and create my own method called on the "CreatingPair" event and my method modify the CollisionRule from Defer to NoBroadPhase.
It works but the sender collidable object is stopped for a few moments.
I think is not the best solution. Do you have any idea ?
Thank you in advance.