You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quinton-ashley
changed the title
[feature] Provide more info about collisions or overlaps in callbacks
Provide more info about collisions or overlaps in callbacks
Dec 19, 2023
Currently collision and overlap callbacks get as input parameters the sprites involved in the event.
It'd also be great to provide, as a third input parameter, an object with more information about the contact.
Info such as an array with the points of impact and the normal force applied to separate the colliders.
This info would be retrieved from the planck contact:
https://piqnt.com/planck.js/docs/contacts
The text was updated successfully, but these errors were encountered: