Browse Source

Clear linear velocity after each update.

avatar-physics
Skoader 12 years ago
parent
commit
860b071bb2
  1. 3
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

3
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;

Loading…
Cancel
Save