Example #1
0
    void Start()
    {
        grabber = gameObject.AddComponent <ViveGrip_Grabber>();
        GameObject gripSphere = InstantiateTouchSphere();

        touch = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        UpdateRadius(touchRadius, holdRadius);
    }
    public GameObject airGrabbingTarget; //target of air grabbing events

    void Start()
    {
        controller = GetComponent <ViveGrip_ControllerHandler>();
        grabber    = gameObject.AddComponent <ViveGrip_Grabber>();
        GameObject gripSphere = InstantiateTouchSphere();

        touch        = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        touch.radius = touchRadius;
    }