-
Is there a way for Virtual Characters to detect collisions with sensors, without using a second kinematic body? I noticed in CharacterContactListener when I have a contact and cross check the BodyID with the bodies in my scene, that the only ones that never appear are bodies I have called SetIsSensor(true) on. I confirmed sensors are working with other dynamic bodies in the scene. I followed the advice from some of the other discussions and added another body that I sync to my VirtualCharacter, but it seems weird to me to add all this code just to make virtual characters activate triggers. Could someone explain the proper usage of sensors in Jolt? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
I think adding the non-virtual character is the only way to detect collisions with sensors. To make this scenario less confusing, maybe we should add a new test/example that demonstrates how to use the combined VirtualCharacter + Character properly. |
Beta Was this translation helpful? Give feedback.
I think adding the non-virtual character is the only way to detect collisions with sensors.
To make this scenario less confusing, maybe we should add a new test/example that demonstrates how to use the combined VirtualCharacter + Character properly.