mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:57:24 +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);
|
setPosition(worldBodyPos);
|
||||||
setOrientation(worldBodyRot);
|
setOrientation(worldBodyRot);
|
||||||
|
|
||||||
// now sample the new hmd orientation AFTER sensor reset.
|
// now sample the new hmd orientation AFTER sensor reset, which should be identity.
|
||||||
updateFromHMDSensorMatrix(qApp->getHMDSensorPose());
|
glm::mat4 identity;
|
||||||
|
updateFromHMDSensorMatrix(identity);
|
||||||
|
|
||||||
// update the body in sensor space using the new hmd sensor sample
|
// update the body in sensor space using the new hmd sensor sample
|
||||||
_bodySensorMatrix = deriveBodyFromHMDSensor();
|
_bodySensorMatrix = deriveBodyFromHMDSensor();
|
||||||
|
|
Loading…
Reference in a new issue