diff options
| author | rezural <rezural@protonmail.com> | 2020-12-31 13:24:29 +1100 |
|---|---|---|
| committer | rezural <rezural@protonmail.com> | 2020-12-31 13:24:29 +1100 |
| commit | f7820139471178fd273c7698eba17cb4ee0cf00d (patch) | |
| tree | 8bcba52a9b7cea7e7abdd78c061e514df3b71c28 /examples2d/platform2.rs | |
| parent | d992ebc4885737511d9b5fafd1846e7601963e55 (diff) | |
| download | rapier-f7820139471178fd273c7698eba17cb4ee0cf00d.tar.gz rapier-f7820139471178fd273c7698eba17cb4ee0cf00d.tar.bz2 rapier-f7820139471178fd273c7698eba17cb4ee0cf00d.zip | |
make examples compile, code that accessed window & graphics via the callback is currently disabled, until that is added back in
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 3b543db..5b84a18 100644 --- a/examples2d/platform2.rs +++ b/examples2d/platform2.rs @@ -60,7 +60,7 @@ pub fn init_world(testbed: &mut Testbed) { /* * Setup a callback to control the platform. */ - testbed.add_callback(move |_, physics, _, _, run_state| { + testbed.harness_mut().add_callback(move |physics, _, run_state, _| { let platform = physics.bodies.get_mut(platform_handle).unwrap(); let mut next_pos = *platform.position(); |
