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

Need contact points exposed on collision Response object #63

Open
Nashorn opened this issue Jun 1, 2020 · 1 comment
Open

Need contact points exposed on collision Response object #63

Nashorn opened this issue Jun 1, 2020 · 1 comment

Comments

@Nashorn
Copy link

Nashorn commented Jun 1, 2020

Need contact points exposed on collision Response object. Needed for physics

@jriecken
Copy link
Owner

jriecken commented Jun 3, 2020

I agree - unfortunately I currently don't have time to spend on any significant changes to this library. I would take a look at a pull request though (maybe exposed as a method on the SAT.Response object?

It should be possible to compute a contact manifold (e.g in our case either a point or a line) using a method like this: http://www.dyn4j.org/2011/11/contact-points-using-clipping/ - the overlapN and overlap in the SAT.Response are the "separation normal" and "depth" that the article talks about getting back from the collision detection phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants