Call update_world_mass_properties from RigidBody::set_mass_properties
This commit is contained in:
@@ -187,6 +187,7 @@ impl RigidBody {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.mass_properties = props;
|
self.mass_properties = props;
|
||||||
|
self.update_world_mass_properties();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The handles of colliders attached to this rigid body.
|
/// The handles of colliders attached to this rigid body.
|
||||||
|
|||||||
Reference in New Issue
Block a user