Browse Source

Clear achieved linear velocity on disabled avatars.

avatar-physics
Skoader 12 years ago
parent
commit
79377e2b95
  1. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

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

@ -172,6 +172,8 @@ void plPhysicalControllerCore::IUpdate(int numSubSteps, hsScalar alpha)
}
else
{
fAchievedLinearVelocity.Set(0.0f, 0.0f, 0.0f);
// Update global location if in a subworld
const plCoordinateInterface* subworldCI = GetSubworldCI();
if (subworldCI)

Loading…
Cancel
Save