Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        coilcontroller = GameObject.Find("OptotypeE").GetComponent <CoilController>();
        //members;
        this.currentHeadOrientation = new Quaternion();
        this.currentHeadVelocity    = new Vector3();
        this.simulinkSample         = (UInt32)0;

        RCThread = new Thread(read_coil);
        RCThread.Start();
    }
Beispiel #2
0
 public void initializeSource(int sourceType)
 {
     if (source == 0)
     {
         vrController = GetComponent <VRController>();
     }
     else if (source == 1)
     {
         coilController = GetComponent <CoilController>();
     }
     else if (source == 2)
     {
         qController = GetComponent <QuaternionController>();
     }
 }