Click BasicCursor and notice the ObjectCursor script
Double click the ObjectCursor.cs file, and Click F12 on Cursor parent class
keep finding its void Start() method
haha, what I highlighted here is what I was using in my previous post, GazeManager.Instance, yes, Gaze is using GazeManager for detecting the outer world!
let keep finding void Update() method
they are using gazeManager.HitObject which is what I was using in previous post
and finally they using transform.location, rotation to relocate the Cursor's position and its status
this is how cursor works in Holotoolkit, i skipped lots of detail, but just give out a hint how Gaze and GazeManger, InputManager are related together
next post, let use gesture to rotate the Cube。
No comments:
Post a Comment