mirror of
https://github.com/overte-org/overte.git
synced 2025-07-26 07:26:37 +02:00
init _bodySensorMatrix in ctor
This commit is contained in:
parent
5a93516330
commit
12ff9734e0
1 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,12 @@ MyAvatar::MyAvatar(RigPointer rig) :
|
||||||
connect(DependencyManager::get<AddressManager>().data(), &AddressManager::locationChangeRequired,
|
connect(DependencyManager::get<AddressManager>().data(), &AddressManager::locationChangeRequired,
|
||||||
this, &MyAvatar::goToLocation);
|
this, &MyAvatar::goToLocation);
|
||||||
_characterController.setEnabled(true);
|
_characterController.setEnabled(true);
|
||||||
|
|
||||||
|
_hmdSensorMatrix = glm::mat4();
|
||||||
|
_hmdSensorPosition = extractTranslation(_hmdSensorMatrix);
|
||||||
|
_hmdSensorOrientation = glm::quat_cast(_hmdSensorMatrix);
|
||||||
|
_bodySensorMatrix = deriveBodyFromHMDSensor();
|
||||||
|
updateSensorToWorldMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
MyAvatar::~MyAvatar() {
|
MyAvatar::~MyAvatar() {
|
||||||
|
|
Loading…
Reference in a new issue