From bed47a82e706a13c22799fcf644753c69fdec6ad Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Sun, 7 Mar 2021 11:43:47 +0100 Subject: Projection friction impulses on an implicit cone instead of a pyramidal approximation. --- examples3d/one_way_platforms3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples3d/one_way_platforms3.rs') 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. -- cgit