[Add] Zero velocity and forces on landing.
This commit is contained in:
		
							parent
							
								
									d89e39e1c0
								
							
						
					
					
						commit
						747aaf1981
					
				| @ -163,6 +163,11 @@ void Ship::TestLanded(void) { | |||||||
|         rot = rot.InverseOf(); |         rot = rot.InverseOf(); | ||||||
|         SetRotMatrix(rot); |         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 |          * We don't use DynamicBody::Disable because that also disables | ||||||
|          * the geom, and that must still get collisions. |          * the geom, and that must still get collisions. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis