mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
MyAvatar: reset fix, for both oculus and vive
This commit is contained in:
parent
f82c3ba4f2
commit
edfce0d5ba
1 changed files with 3 additions and 2 deletions
|
@ -263,8 +263,9 @@ void MyAvatar::reset(bool andRecenter, bool andReload) {
|
|||
setPosition(worldBodyPos);
|
||||
setOrientation(worldBodyRot);
|
||||
|
||||
// now sample the new hmd orientation AFTER sensor reset.
|
||||
updateFromHMDSensorMatrix(qApp->getHMDSensorPose());
|
||||
// now sample the new hmd orientation AFTER sensor reset, which should be identity.
|
||||
glm::mat4 identity;
|
||||
updateFromHMDSensorMatrix(identity);
|
||||
|
||||
// update the body in sensor space using the new hmd sensor sample
|
||||
_bodySensorMatrix = deriveBodyFromHMDSensor();
|
||||
|
|
Loading…
Reference in a new issue