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

Moving player towards Gaze position VR hololens

$
0
0
I have two scripts but im unsure hot to get them to communicate together.
I have a cursor that follows the gaze of user.

I have a Player that is controlled by keyboard.

How do I convert this to have the player move towards the cursor or gaze direction?

Cursor Control
Code (CSharp):
  1. public class WorldCursor : MonoBehaviour
  2. {
  3.     private MeshRenderer meshRenderer;
  4.  
  5.     // Use this for initialization
  6.     void Start()
  7.     {
  8.         // Grab the mesh renderer that's on the same object as this...
Moving player towards Gaze position VR hololens

Viewing all articles
Browse latest Browse all 12131

Trending Articles



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