mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +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::vec3 position = getPosition();
|
||||||
glm::quat orientation = getOrientation();
|
glm::quat orientation = getOrientation();
|
||||||
if (_characterController.isEnabledAndReady()) {
|
if (_characterController.isEnabledAndReady()) {
|
||||||
glm::quat bogusOrientation;
|
_characterController.getPositionAndOrientation(position, orientation);
|
||||||
_characterController.getPositionAndOrientation(position, bogusOrientation);
|
|
||||||
}
|
}
|
||||||
nextAttitude(position, orientation);
|
nextAttitude(position, orientation);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue