- Home /
Android: how do i make the rotation of my player follow the rotation of my phone
im trying to make a google cardboard app, i want the rotation of my camera to follow the rotation of my player, just the rotation though not the movement. similar to how the oculus rift works (actually, exactly how oculus works). i feel like this is a simple one and im just overthinking it
Answer by TSRajesh · Feb 19, 2016 at 04:37 AM
I assume that your camera (Is that the Cardboard Camera prefab from the SDK?) is parented to the player.. Remove/Disable the "Cardboard Head" from your camera. In which case, it will make teh camera not to turn in response to your head turn. (And additionally, Add this "Cardboard Head" script to your player character if you want the player to turn with yoru head turn..)
Your answer
Follow this Question
Related Questions
Input.gyro.attitude not working on newer Android devices 3 Answers
Move towards VR Camera Orientation with Bluetooth Controller (Android) 0 Answers
How can I rotate my player with a Joystick? 0 Answers
2019.3 Oculus XR Plugin play mode does not work for Oculus Quest 0 Answers
VR Camera on the floor 0 Answers