Closed Ralith closed 2 years ago
This panic is caused by the fact that only modifying the type of a rigid-body won’t trigger an update of the relative_dominance
stored in contact manifolds involving this rigid-body. Ultimately, this means that said contact manifold ends up in the wrong pool of contact manifolds (i.e. it may end up in the pool of two-bodies contact where it should only be one-body contact).
Will be fixed by #252.
Occurred while repeatedly switching a rigid body between
RigidBodyType::KinematicPositionBased
andRigidBodyType::Dynamic
, overwriting the linear and angular velocity and position when transitioning back to dynamic. The panic happened while the object was kinematic.Full stack trace: