[Add] Zero velocity and forces on landing.

This commit is contained in:
Rtch90 2018-01-20 18:14:59 +00:00
parent 703515dbe0
commit 117b9db6bd

View File

@ -163,6 +163,11 @@ void Ship::TestLanded(void) {
rot = rot.InverseOf();
SetRotMatrix(rot);
dBodySetLinearVel(m_body, 0,0,0);
dBodySetAngularVel(m_body,0,0,0);
dBodySetForce(m_body,0,0,0);
dBodySetTorque(m_body,0,0,0);
/*
* We don't use DynamicBody::Disable because that also disables
* the geom, and that must still get collisions.