|
|
@ -133,8 +133,10 @@ void plWalkingController::RecalcVelocity(double timeNow, double timePrev, hsBool |
|
|
|
|
|
|
|
|
|
|
|
if (fController && !fWalkingStrategy->IsOnGround()) |
|
|
|
if (fController && !fWalkingStrategy->IsOnGround()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// PhysX Hack
|
|
|
|
|
|
|
|
// LinearVelocity is always (0,0,0) outside the PhysController
|
|
|
|
fImpactTime = fWalkingStrategy->GetAirTime(); |
|
|
|
fImpactTime = fWalkingStrategy->GetAirTime(); |
|
|
|
fImpactVelocity = fController->GetLinearVelocity(); |
|
|
|
fImpactVelocity = fController->GetAchievedLinearVelocity(); |
|
|
|
fClearImpact = false; |
|
|
|
fClearImpact = false; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|