// Use this for initialization void Start() { //initialize razer hydra, physics body, velocity, orientation, and audio source plugin.init(); self = gameObject.GetComponent <Rigidbody>(); vel = Vector3.zero; ori = 0; au = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { plugin = new RazerHydraPlugin(); //playerTransform = this.GetComponent<Transform> (); plugin.init(); ball.GetComponent <Rigidbody> ().useGravity = false; ball.SetActive(true); ballClone = Instantiate(ball, hold.transform.position, hold.transform.rotation); ballClone.SetActive(false); //start = 0f; //end = 0f; medium = 10; small = 7; large = 13; StartCoroutine(throwCheck()); }