[Add] Zero velocity and forces on landing.
This commit is contained in:
parent
703515dbe0
commit
117b9db6bd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user