Closed ilia-glushchenko closed 5 years ago
Something goes wrong with GJK.
Reproducible with the following scene setup case:
pegasus::mechanics::Body sphere;
sphere.linearMotion.position = { 0, -4, 3 };
sphere.linearMotion.velocity = { 0, 0, -1 };
demo.MakeSphere(sphere, 1, pegasus::scene::Primitive::Type::DYNAMIC);
pegasus::mechanics::Body box;
box.linearMotion.position = { 0, -4, 0 };
demo.MakeBox(box, { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 }, pegasus::scene::Primitive::Type::DYNAMIC);
Steps to reproduce:
Excepted: Sphere Box collision detection should prevent such penetrations from happening