mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:57:10 +02:00
fix bug preventing avatar motion in 2D mode
This commit is contained in:
parent
9799693135
commit
a545d770d8
1 changed files with 7 additions and 2 deletions
|
@ -1295,8 +1295,13 @@ void MyAvatar::prepareForPhysicsSimulation() {
|
||||||
relayDriveKeysToCharacterController();
|
relayDriveKeysToCharacterController();
|
||||||
_characterController.setTargetVelocity(getTargetVelocity());
|
_characterController.setTargetVelocity(getTargetVelocity());
|
||||||
_characterController.setAvatarPositionAndOrientation(getPosition(), getOrientation());
|
_characterController.setAvatarPositionAndOrientation(getPosition(), getOrientation());
|
||||||
|
if (qApp->isHMDMode()) {
|
||||||
updateHMDFollowVelocity();
|
updateHMDFollowVelocity();
|
||||||
_characterController.setHMDVelocity(_hmdFollowVelocity);
|
_characterController.setHMDVelocity(_hmdFollowVelocity);
|
||||||
|
} else {
|
||||||
|
_characterController.setHMDVelocity(Vectors::ZERO);
|
||||||
|
_isFollowingHMD = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::harvestResultsFromPhysicsSimulation() {
|
void MyAvatar::harvestResultsFromPhysicsSimulation() {
|
||||||
|
|
Loading…
Reference in a new issue