Browse Source

Clear linear velocity after each update.

Skoader 12 years ago committed by Adam Johnson
parent
commit
ae594dcc81
  1. 3
      Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

3
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()) if (!fHitGroundInThisAge && IsOnGround())
fHitGroundInThisAge = true; fHitGroundInThisAge = true;

Loading…
Cancel
Save