Skip to content

Commit

Permalink
Merge pull request #36 from Wavesonics/default_stick_locomotion_fix
Browse files Browse the repository at this point in the history
Ensure that SOME sort of locomotion is selected
  • Loading branch information
NeoSpark314 authored Jun 15, 2020
2 parents 8af1d26 + a4b252e commit b2f493f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OQ_Toolkit/OQ_ARVROrigin/scripts/Locomotion_Stick.gd
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ func move(dt):
var strafe_dir: Vector3

match movement_orientation:
MovementOrientation.HEAD:
view_dir = -vr.vrCamera.global_transform.basis.z;
strafe_dir = vr.vrCamera.global_transform.basis.x;
MovementOrientation.HAND_RIGHT:
view_dir = -vr.rightController.global_transform.basis.z;
strafe_dir = vr.rightController.global_transform.basis.x;
MovementOrientation.HAND_LEFT:
view_dir = -vr.leftController.global_transform.basis.z;
strafe_dir = vr.leftController.global_transform.basis.x;
MovementOrientation.HEAD, _:
view_dir = -vr.vrCamera.global_transform.basis.z;
strafe_dir = vr.vrCamera.global_transform.basis.x;

view_dir.y = 0.0;
strafe_dir.y = 0.0;
Expand Down

0 comments on commit b2f493f

Please sign in to comment.