From ae594dcc8146d447771a52bf2deb9b0154941e54 Mon Sep 17 00:00:00 2001 From: Skoader Date: Sat, 1 Dec 2012 23:05:19 -0500 Subject: [PATCH] Clear linear velocity after each update. --- .../Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp b/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp index 75d1511e..0b9060f3 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp +++ b/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp @@ -502,6 +502,9 @@ void plWalkingStrategy::Update(float delSecs) } } + hsVector3 zeroVelocity(0.f, 0.f, 0.f); + fController->SetLinearVelocity(zeroVelocity); + if (!fHitGroundInThisAge && IsOnGround()) fHitGroundInThisAge = true;