void Start() { wandLeft = controllerGameObjectLeft.GetComponent <SteamVR_TestThrow>(); wandRayL = controllerGameObjectLeft.GetComponent <WandRay>(); wandRight = controllerGameObjectRight.GetComponent <SteamVR_TestThrow>(); wandRayR = controllerGameObjectLeft.GetComponent <WandRay>(); myInteractionHandler = sceneGod.GetComponent <InteractionHandler>(); }
void ControllerUpdate(SteamVR_TestThrow wand, string handedness) { myInteractionHandler.HandleInteraction(wand.triggerPress, wand.gameObject.transform.position, handedness); }