My question is how to get VR head movement?!!!
Answer by Baroque
2 days ago
If you have set up your project for VR correctly (follow the VR tutorial) then your main camera will update its transform based on the orientation of the VR headset automatically!
You can get at the main camera using the Camera.main helper property:
// For example...
Camera headsetCamera = Camera.main;
Vector3 headsetForwards = headsetCamera.transform.forwards;
From there you can do whatever you like--it's a standard transform like on any GameObject.
Thanks @Baroque.... Do you know any way to create a VR FPS with these information?!!!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
367 People are following this question.
Detect how long a tap is held
OnCollisionEnter not running.
Where can I learn C#
How to take user input, convert it integer, and print it on screen?
How to fill a circle image by every second