Browse Source

Clear impact velocity on WalkingStrategy Reset.

Fixes landing behaviours incorrectly firing after a brain transition.
avatar-physics
Skoader 12 years ago
parent
commit
3d14321f26
  1. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

@ -537,6 +537,8 @@ void plWalkingStrategy::AddContactNormals(hsVector3& vec)
void plWalkingStrategy::Reset(bool newAge)
{
plMovementStrategy::Reset(newAge);
fImpactVelocity.Set(0.0f, 0.0f, 0.0f);
fImpactTime = 0.0f;
if (newAge)
{
fTimeInAir = 0.0f;

Loading…
Cancel
Save