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
{
fAchievedLinearVelocity.Set(0.0f, 0.0f, 0.0f);
// Update global location if in a subworld
const plCoordinateInterface* subworldCI = GetSubworldCI();
if (subworldCI)

Loading…
Cancel
Save