diff options
| author | Sébastien Crozet <developer@crozet.re> | 2021-03-04 10:07:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 10:07:26 +0100 |
| commit | 5079d18bfba8c22a819b16b79a6643be035b9070 (patch) | |
| tree | 8733f22cc41174d43b58a26c03c96c73817cee1e /src | |
| parent | 514176fd1a3030cd614c88017f90a740a05b8ef9 (diff) | |
| parent | 589c6ce834a7da2c5f1bae05d91760403486677b (diff) | |
| download | rapier-5079d18bfba8c22a819b16b79a6643be035b9070.tar.gz rapier-5079d18bfba8c22a819b16b79a6643be035b9070.tar.bz2 rapier-5079d18bfba8c22a819b16b79a6643be035b9070.zip | |
Merge pull request #139 from EmbarkStudios/body-mass-props
Call update_world_mass_properties from RigidBody::set_mass_properties
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index 88f4069..7cc7a99 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -187,6 +187,7 @@ impl RigidBody { } self.mass_properties = props; + self.update_world_mass_properties(); } /// The handles of colliders attached to this rigid body. |
