Merge pull request #16355 from hyperlogic/bug-fix/hmd-flying-fix

Fix for HMD mode flying
This commit is contained in:
Shannon Romano 2019-10-16 08:42:22 -07:00 committed by GitHub
commit c2270765c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2719,7 +2719,7 @@ void MyAvatar::updateMotors() {
if (_characterController.getState() == CharacterController::State::Hover ||
_characterController.computeCollisionMask() == BULLET_COLLISION_MASK_COLLISIONLESS) {
CameraMode mode = qApp->getCamera().getMode();
if (mode == CAMERA_MODE_FIRST_PERSON || mode == CAMERA_MODE_LOOK_AT || mode == CAMERA_MODE_SELFIE) {
if (!qApp->isHMDMode() && (mode == CAMERA_MODE_FIRST_PERSON || mode == CAMERA_MODE_LOOK_AT || mode == CAMERA_MODE_SELFIE)) {
motorRotation = getLookAtRotation();
} else {
motorRotation = getMyHead()->getHeadOrientation();