Correct Contact Manifold
Posted: Sat Sep 16, 2017 10:27 pm
Hello everyone!
Trying to understand all the pipeline behind the physics simulation before implementing it myself
Suppose I have two colliding objects A and B and then I operate with Minkowsli difference
1) Find out if A-B contains origin (algorithm is not an issue here)
2) If yes find the smallest distance from origin to the boundary of A-B. And during this procedure I also find a "normal", where distance and normal are realted by the simple formula
Smallest Distance = Support(A-B,normal)
Then (according to several sources) one says that objects A and B were hitted in points Support(A,normal) and Support(B,-normal) respectively. And here happens something weird
Suppose I collide two boxes A and B in face vs. vertex (A-- face, B--vertex). After drawing some pictures of Minkowsli difference it is easy to see that the normal to the collision is the normal to the face under consideration. But once I calculate Support(A,normal) I get the vertex but not a point on the face. As a result all the actual physics calculation based on this contact information worth nothing. I can take super long box A and hit it with the box B directly into the center of the face
How do people finde correct hit points based on analysis of Minkowski difference?
Trying to understand all the pipeline behind the physics simulation before implementing it myself
Suppose I have two colliding objects A and B and then I operate with Minkowsli difference
1) Find out if A-B contains origin (algorithm is not an issue here)
2) If yes find the smallest distance from origin to the boundary of A-B. And during this procedure I also find a "normal", where distance and normal are realted by the simple formula
Smallest Distance = Support(A-B,normal)
Then (according to several sources) one says that objects A and B were hitted in points Support(A,normal) and Support(B,-normal) respectively. And here happens something weird
Suppose I collide two boxes A and B in face vs. vertex (A-- face, B--vertex). After drawing some pictures of Minkowsli difference it is easy to see that the normal to the collision is the normal to the face under consideration. But once I calculate Support(A,normal) I get the vertex but not a point on the face. As a result all the actual physics calculation based on this contact information worth nothing. I can take super long box A and hit it with the box B directly into the center of the face
How do people finde correct hit points based on analysis of Minkowski difference?