aboutsummaryrefslogtreecommitdiff
path: root/examples3d/one_way_platforms3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d/one_way_platforms3.rs')
-rw-r--r--examples3d/one_way_platforms3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples3d/one_way_platforms3.rs b/examples3d/one_way_platforms3.rs
index 173d03d..d117a5b 100644
--- a/examples3d/one_way_platforms3.rs
+++ b/examples3d/one_way_platforms3.rs
@@ -40,7 +40,7 @@ impl PhysicsHooks for OneWayPlatformHook {
allowed_local_n1 = -Vector3::y();
} else if context.collider_handle2 == self.platform2 {
// Flip the allowed direction.
- allowed_local_n1 = -Vector3::y();
+ allowed_local_n1 = Vector3::y();
}
// Call the helper function that simulates one-way platforms.