mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
restore orientation from physics to Avatar
This commit is contained in:
parent
59e6ca8f8d
commit
7258835f3f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue