Browse Source

Clear achieved linear velocity on disabled avatars.

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

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

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

Loading…
Cancel
Save