30-11-2021, 02:28 PM
(This post was last modified: 30-11-2021, 02:29 PM by josemendez.)
(30-11-2021, 02:09 PM)greyhawk Wrote: So how do we realize that the contact has ended? just like onCollisionExit
Hi!
Simple: when the contact no longer appears in the list.
You can compare the previous frame's contact list and the current contact list to determine enter, stay and exit events. This is what the ObiContactEventDispatcher utility component does for regular -collider- contacts. You can do the same for particle contacts too.