-
I'm using sensor bodies to implement trigger volumes, and the sensor bodies are created with mAllowSleeping = false and mMotionType = Static. A contact listener's OnContactAdded() and OnContactRemoved() are used to track rigid bodies entering and exiting the trigger volume. Ideally I'd love to see consistent enter / exit, but I noticed that a rigid body sleeping inside the volume causes a contact removed callback to fire, and so with my implementation I can see objects get enter / exit messages without leaving the volume when they activate / deactivate. Is this an issue with my implementation? Is there a better way to get consistent enter / exit notifications for a sensor volume? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please see the help text @ Body::SetIsSensor |
Beta Was this translation helpful? Give feedback.
Please see the help text @ Body::SetIsSensor