diff options
| author | Sébastien Crozet <developer@crozet.re> | 2020-11-20 17:39:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-20 17:39:28 +0100 |
| commit | 3b9c312fb393e6abdce1afb6dcbeb5e14e1f65c0 (patch) | |
| tree | d2236a6adfd10a8478f63628c766200b93a97a2a /examples3d/platform3.rs | |
| parent | 1b0f39073fa5f87ec275fff0125649de123e6fa9 (diff) | |
| parent | 11e4ccbe930b96a4c04208accd24a4519b783c8c (diff) | |
| download | rapier-3b9c312fb393e6abdce1afb6dcbeb5e14e1f65c0.tar.gz rapier-3b9c312fb393e6abdce1afb6dcbeb5e14e1f65c0.tar.bz2 rapier-3b9c312fb393e6abdce1afb6dcbeb5e14e1f65c0.zip | |
Merge pull request #64 from dimforge/explicit_wake_up
Add more explicit parameters to wake-up a rigid-body
Diffstat (limited to 'examples3d/platform3.rs')
| -rw-r--r-- | examples3d/platform3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/platform3.rs b/examples3d/platform3.rs index 6c3483e..0843300 100644 --- a/examples3d/platform3.rs +++ b/examples3d/platform3.rs @@ -72,7 +72,7 @@ pub fn init_world(testbed: &mut Testbed) { } if let Some(mut platform) = physics.bodies.get_mut(platform_handle) { - let mut next_pos = platform.position; + let mut next_pos = *platform.position(); let dt = 0.016; next_pos.translation.vector.y += (time * 5.0).sin() * dt; |
