From 66dc3dde92b02cf5f804c88f901689c8c973eb30 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 3 Apr 2012 12:42:37 -0400 Subject: [PATCH] Fix landing behaviors --- .../Sources/Plasma/PubUtilLib/plAvatar/plAvCallbackAction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAvCallbackAction.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAvCallbackAction.cpp index 7e90c022..b8320585 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAvCallbackAction.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plAvCallbackAction.cpp @@ -133,8 +133,10 @@ void plWalkingController::RecalcVelocity(double timeNow, double timePrev, hsBool if (fController && !fWalkingStrategy->IsOnGround()) { + // PhysX Hack + // LinearVelocity is always (0,0,0) outside the PhysController fImpactTime = fWalkingStrategy->GetAirTime(); - fImpactVelocity = fController->GetLinearVelocity(); + fImpactVelocity = fController->GetAchievedLinearVelocity(); fClearImpact = false; } else