-
Is it possible to get character vs character contact without a listener? I am going through the contact list returned by |
Beta Was this translation helpful? Give feedback.
Answered by
jrouwe
Jun 2, 2025
Replies: 1 comment 3 replies
-
Yes, that seems to work for me. If I disable the listener in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Character vs Character Inner Body contacts will not have a valid mCharacterIDB, this will give you a
mBodyB
contact (and only if the layers are configured so that the inner body collides with the other character). This way of doing it is not recommended.In order to collide with other CharacterVirtual's you need to set an interface to make characters aware of each other (Jolt does not track CharacterVirtual objects):
JoltPhysics.js/JoltJS.idl
Line 3299 in 0a5d19c
You can use this simple implementation:
JoltPhysics.js/JoltJS.idl
Lines 3112 to 3116 in 0a5d19c