sat-js icon indicating copy to clipboard operation
sat-js copied to clipboard

Need contact points exposed on collision Response object

Open Nashorn opened this issue 4 years ago • 1 comments

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

Nashorn avatar Jun 01 '20 11:06 Nashorn

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.

jriecken avatar Jun 03 '20 03:06 jriecken