From a60c6e5fddbf18df8295c0055ebda772b3bb6f60 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 23 Feb 2021 16:26:02 +0100 Subject: Fix the compilation of tests. --- examples2d/one_way_platforms2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples2d') diff --git a/examples2d/one_way_platforms2.rs b/examples2d/one_way_platforms2.rs index 2e1788e..551eaf1 100644 --- a/examples2d/one_way_platforms2.rs +++ b/examples2d/one_way_platforms2.rs @@ -47,7 +47,7 @@ impl PhysicsHooks for OneWayPlatformHook { context.update_as_oneway_platform(&allowed_local_n1, 0.1); // Set the surface velocity of the accepted contacts. - let surface_velocity = if context.collider_handle1 == self.platform1 + let tangent_velocity = if context.collider_handle1 == self.platform1 || context.collider_handle2 == self.platform2 { -12.0 @@ -56,7 +56,7 @@ impl PhysicsHooks for OneWayPlatformHook { }; for contact in context.solver_contacts.iter_mut() { - contact.surface_velocity.x = surface_velocity; + contact.tangent_velocity.x = tangent_velocity; } } } -- cgit