diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-07-08 11:55:44 +0200 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-07-08 11:55:44 +0200 |
| commit | 8c707ef02d589a78f747786e1368b723919accfc (patch) | |
| tree | 4b8b3bd3c473330764b529c34ca30a4a4a1dc35d /src/dynamics | |
| parent | efaf16aaea745a9b489a38f39bbe2db5fb85dcd1 (diff) | |
| download | rapier-8c707ef02d589a78f747786e1368b723919accfc.tar.gz rapier-8c707ef02d589a78f747786e1368b723919accfc.tar.bz2 rapier-8c707ef02d589a78f747786e1368b723919accfc.zip | |
cargo fmt
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index d64a88b..214e279 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -204,7 +204,12 @@ impl RigidBody { allow_rotations_z: bool, wake_up: bool, ) { - self.set_allowed_rotations(allow_rotations_x, allow_rotations_y, allow_rotations_z, wake_up); + self.set_allowed_rotations( + allow_rotations_x, + allow_rotations_y, + allow_rotations_z, + wake_up, + ); } #[inline] @@ -277,7 +282,8 @@ impl RigidBody { self.set_allowed_translations( allow_translation_x, allow_translation_y, - #[cfg(feature = "dim3")] allow_translation_z, + #[cfg(feature = "dim3")] + allow_translation_z, wake_up, ) } @@ -1125,7 +1131,8 @@ impl RigidBodyBuilder { self.allowed_translations( allow_translations_x, allow_translations_y, - #[cfg(feature = "dim3")] allow_translations_z, + #[cfg(feature = "dim3")] + allow_translations_z, ) } @@ -1165,7 +1172,6 @@ impl RigidBodyBuilder { self.allowed_rotations(allow_rotations_x, allow_rotations_y, allow_rotations_z) } - /// Sets the damping factor for the linear part of the rigid-body motion. /// /// The higher the linear damping factor is, the more quickly the rigid-body |
