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

A couple requets #86

Open
gregmax17 opened this issue Dec 4, 2024 · 3 comments
Open

A couple requets #86

gregmax17 opened this issue Dec 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@gregmax17
Copy link
Contributor

  • How difficult would it be to add a isEnabled boolean on a body?
  • Any way to get the point/position of the collision based from the body's position?

Thank you

@Prozi
Copy link
Owner

Prozi commented Dec 29, 2024

ad 1. https://prozi.github.io/detect-collisions/interfaces/BodyOptions.html { userData: { isEnabled: true } }
ad 2. on collision use raycast that's the only way I think

@gregmax17
Copy link
Contributor Author

Thank you for the suggestions!

@Prozi
Copy link
Owner

Prozi commented Jan 15, 2025

@gregmax17 the

System.getCollisionsPoints(a: Body, b: Body) is something I will probably implement

thanks

@Prozi Prozi added the enhancement New feature or request label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants