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