diff options
| author | Sébastien Crozet <developer@crozet.re> | 2020-11-30 15:55:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-30 15:55:54 +0100 |
| commit | ab7fdb5f4e5b67ab757e9d5135ab62abfd001846 (patch) | |
| tree | 8bdad3f6e1a18b17b1d7898f64052927138bd4d4 /examples2d/platform2.rs | |
| parent | c9ac149b17622f4267bf9a1fcea9cf80ffbbfd2c (diff) | |
| parent | 1e0f76b02c3766f2f1b5bd6b7362c0c993ffee67 (diff) | |
| download | rapier-ab7fdb5f4e5b67ab757e9d5135ab62abfd001846.tar.gz rapier-ab7fdb5f4e5b67ab757e9d5135ab62abfd001846.tar.bz2 rapier-ab7fdb5f4e5b67ab757e9d5135ab62abfd001846.zip | |
Merge pull request #70 from dimforge/lock_rotations
Add a more convenient way of locking the rotations (or translations) of a rigid-body
Diffstat (limited to 'examples2d/platform2.rs')
| -rw-r--r-- | examples2d/platform2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples2d/platform2.rs b/examples2d/platform2.rs index 3f55cb6..20b2e59 100644 --- a/examples2d/platform2.rs +++ b/examples2d/platform2.rs @@ -61,7 +61,7 @@ pub fn init_world(testbed: &mut Testbed) { * Setup a callback to control the platform. */ testbed.add_callback(move |_, physics, _, _, time| { - let mut platform = physics.bodies.get_mut(platform_handle).unwrap(); + let platform = physics.bodies.get_mut(platform_handle).unwrap(); let mut next_pos = *platform.position(); let dt = 0.016; |
