From e29e90833394c68f0c9a91d476524aeccf9441e4 Mon Sep 17 00:00:00 2001 From: Skoader Date: Sat, 1 Dec 2012 23:09:46 -0500 Subject: [PATCH] Clear impact velocity on WalkingStrategy Reset. Fixes landing behaviours incorrectly firing after a brain transition. --- Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp b/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp index 0b9060f3..ad83a249 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp +++ b/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp @@ -538,6 +538,8 @@ void plWalkingStrategy::AddContactNormals(hsVector3& vec) void plWalkingStrategy::Reset(bool newAge) { plMovementStrategy::Reset(newAge); + fImpactVelocity.Set(0.0f, 0.0f, 0.0f); + fImpactTime = 0.0f; if (newAge) { fTimeInAir = 0.0f;