Skip to content

How to know if body is a sensor using just BodyID #1356

Closed Answered by jrouwe
benjaminleezhiyuan asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benjaminleezhiyuan
Comment options

Answer selected by benjaminleezhiyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants