restore orientation from physics to Avatar

This commit is contained in:
Andrew Meadows 2016-09-20 09:14:11 -07:00
parent 59e6ca8f8d
commit 7258835f3f

View file

@ -1378,8 +1378,7 @@ void MyAvatar::harvestResultsFromPhysicsSimulation(float deltaTime) {
glm::vec3 position = getPosition();
glm::quat orientation = getOrientation();
if (_characterController.isEnabledAndReady()) {
glm::quat bogusOrientation;
_characterController.getPositionAndOrientation(position, bogusOrientation);
_characterController.getPositionAndOrientation(position, orientation);
}
nextAttitude(position, orientation);