How to know if body is a sensor using just BodyID #1356
-
I have a character contact listener
I have separate queues for character vs sensor and character vs non-sensors This is what my normal contact listener looks like
I can check if body is sensor using the isSensor function |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you don't want to lock then use something like:
(although for CharacterVirtual you're calling the update function yourself and if at that time other operations on the physics system can be done then you would need to use the locking interface) |
Beta Was this translation helpful? Give feedback.
If you don't want to lock then use something like:
BodyLockRead lock(mPhysicsSystem.GetBodyLockInterfaceNoLock(), inBodyID2);
(although for CharacterVirtual you're calling the update function yourself and if at that time other operations on the physics system can be done then you would need to use the locking interface)