From cc68088298d30f81036871c53698b36c9e8a5fbb Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Tue, 14 Jan 2014 09:14:17 +0100 Subject: [PATCH] linear coll. resp. fix add fix didn't cover all cases. Now it do --- Code/GamePhysics/Implementation/PhysicsAPI_Impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/GamePhysics/Implementation/PhysicsAPI_Impl.cpp b/Code/GamePhysics/Implementation/PhysicsAPI_Impl.cpp index c61f9ce9..0d1eaf5d 100644 --- a/Code/GamePhysics/Implementation/PhysicsAPI_Impl.cpp +++ b/Code/GamePhysics/Implementation/PhysicsAPI_Impl.cpp @@ -54,6 +54,10 @@ namespace break; } } + else + { + break; + } // bounce Float4 bounceD = normal * -Formula::CollisionResponse::Bounce( deuterState.GetRestitutionCoeff(),