-
The shape of the event provided for a collision is documented, but the meanings of properties are not:
Some things I care about when processing a collision:
Are these things provided? Is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For anyone else looking, I think I found the answer in https://github.com/pmndrs/cannon-es/blob/master/src/equations/ContactEquation.ts#L16
Will update once I understand which body is Update: maybe I'm reading this wrong, but it... looks like there's no way to really tell which body is |
Beta Was this translation helpful? Give feedback.
For anyone else looking, I think I found the answer in
cannon-es
source:https://github.com/pmndrs/cannon-es/blob/master/src/equations/ContactEquation.ts#L16
Will update once I understand which body is
i
and which isj
in relation to the contact event.Update: maybe I'm reading this wrong, but it... looks like there's no way to really tell which body is
i
vsj
for any particular contact event. The contact itself would normally havebi
andbj
fields, …