-
The documentation for
Is it possible that, within an update, a pair of bodies both start colliding and stop colliding, but the contact listener receives the corresponding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, during a simulation step (parameter Note that a contact is defined as |
Beta Was this translation helpful? Give feedback.
No, during a simulation step (parameter
inCollisionSteps
inPhysicsSystem::Update
) you either get anOnContactAdded/Persisted
or you get anOnContactRemoved
callback for a contact, never both. If you passedinCollisionSteps > 1
then you can see an 'add' and a 'remove' during the same call toPhysicsSystem::Update
but they will be ordered correctly (possibly called from different threads, with a memory barrier between the two calls).Note that a contact is defined as
(bo…