mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 05:30:41 +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();
|
||||
_characterController.setTargetVelocity(getTargetVelocity());
|
||||
_characterController.setAvatarPositionAndOrientation(getPosition(), getOrientation());
|
||||
updateHMDFollowVelocity();
|
||||
_characterController.setHMDVelocity(_hmdFollowVelocity);
|
||||
if (qApp->isHMDMode()) {
|
||||
updateHMDFollowVelocity();
|
||||
_characterController.setHMDVelocity(_hmdFollowVelocity);
|
||||
} else {
|
||||
_characterController.setHMDVelocity(Vectors::ZERO);
|
||||
_isFollowingHMD = false;
|
||||
}
|
||||
}
|
||||
|
||||
void MyAvatar::harvestResultsFromPhysicsSimulation() {
|
||||
|
|
Loading…
Reference in a new issue