musehq / spacesvr

A standardized reality for the future of the 3D Web.
https://spacesvr.io
MIT License
182 stars 35 forks source link

SnapTurn in VR look strange #169

Open hecodeit opened 1 year ago

hecodeit commented 1 year ago

Testing spacesvr.io with Quest 2.

After right hand SnapTurn, left hand movment don't work correct?

hecodeit commented 1 year ago

Ok, I have fixed the problem at file VRControllerMovement.tsx

Where left hand gamepad change the position of player

direction.current.x = x;
direction.current.z = z;

// add this line
direction.current.applyEuler(player.rotation)
benjaminha14 commented 1 year ago

thank you, we will look into this and review