Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Steering object by head

$
0
0
HI!

Can somebody tell me how to do head based steering? I know how to do it while mooving only camera, but i want to moove object by head and camera to follow the object.
I need this because i want to implement game logic to the object(it will aleso work for me if i can treat camera as an normal object).

I found this code for steering only camera:
Code (CSharp):
  1. public float speed = /* some number */;
  2.  
  3. private CardboardHead head;
  4.  
  5. void Start()
  6. {
  7. head = // find the CardboardHead
  8. // example:...
Steering object by head

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>