Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more info about collisions or overlaps in callbacks #260

Open
quinton-ashley opened this issue Sep 20, 2023 · 0 comments
Open

Provide more info about collisions or overlaps in callbacks #260

quinton-ashley opened this issue Sep 20, 2023 · 0 comments
Assignees

Comments

@quinton-ashley
Copy link
Owner

quinton-ashley commented Sep 20, 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

@quinton-ashley quinton-ashley self-assigned this Dec 19, 2023
@quinton-ashley 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant