From 860b071bb29b301e025ae456187c4a3a3640502e Mon Sep 17 00:00:00 2001 From: Skoader Date: Fri, 26 Oct 2012 18:03:40 +1100 Subject: [PATCH] Clear linear velocity after each update. --- .../Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp index 516b1cca..f2ad919a 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp @@ -501,6 +501,9 @@ void plWalkingStrategy::Update(hsScalar delSecs) } } + hsVector3 zeroVelocity(0.f, 0.f, 0.f); + fController->SetLinearVelocity(zeroVelocity); + if (!fHitGroundInThisAge && IsOnGround()) fHitGroundInThisAge = true;