Fix for flying in HMDMode with avatar collisons disabled

This commit is contained in:
Anthony J. Thibault 2015-07-09 16:29:43 -07:00
parent f2436bc00a
commit b6c0ae4bea

View file

@ -1479,6 +1479,7 @@ void MyAvatar::updatePosition(float deltaTime) {
// update position ourselves
applyPositionDelta(deltaTime * _targetVelocity);
measureMotionDerivatives(deltaTime);
setPosition(getPosition()); // seems redundant, but we should do this to update the sensorMat.
} // else physics will move avatar later
// update _moving flag based on speed