Fix custom inertia in physics2d, closes#30838

This commit is contained in:
RaphaelHunter
2019-08-15 19:34:47 +08:00
parent 7978e9071b
commit 74713fe970
5 changed files with 20 additions and 15 deletions
+1
View File
@@ -266,6 +266,7 @@ void BodySW::set_mode(PhysicsServer::BodyMode p_mode) {
_inv_mass = mass > 0 ? (1.0 / mass) : 0;
_set_static(false);
angular_velocity = Vector3();
} break;
}