/// <summary> /// initialization /// </summary> void Start() { _hdi = new SmoothedHandDataInterface (); rotationSet = false; cameraObject = GameObject.Find ("CameraMain"); adjustCounter = 0; deadjustCounter = 0; }
/// <summary> /// Initialization. Sets up the interface and the other variables /// </summary> void Start() { //To add additional Interfaces, extend the cases and extend the HandDataType Enumeration (in this class) switch (handDataType) { case HandDataType.SmoothedStateData: _hdi = new SmoothedHandDataInterface (); break; case HandDataType.UnalteredData: _hdi = new UnalteredHandDataInterface (); break; default: _hdi = new UnalteredHandDataInterface (); break; } hand_position_ = Vector3.zero; current_event = HandEventType.Release; hand_rotation_ = Quaternion.identity; }