Example #1
0
    //MeshCollider meshCol;

    private void Awake()
    {
        rb             = GetComponent <Rigidbody>();
        fixedJointGrab = FindObjectOfType <VR_FixedJointGrab>();
        //meshCol = GetComponent<MeshCollider>();
        //meshCol.convex = true;
    }
Example #2
0
    private void Awake()
    {
        //setting up variables
        fixedJointGrab  = FindObjectOfType <VR_FixedJointGrab>();
        highlightObject = transform.GetChild(0).gameObject;

        //deactive highlighter if alwaysShowHighlight is false
        highlightObject.SetActive(alwaysShowHighlight);
    }
Example #3
0
 private void Awake()
 {
     fixedJointGrab = GetComponent <VR_FixedJointGrab>();
 }