Esempio n. 1
0
    //MeshCollider meshCol;

    private void Awake()
    {
        rb             = GetComponent <Rigidbody>();
        fixedJointGrab = FindObjectOfType <VR_FixedJointGrab>();
        //meshCol = GetComponent<MeshCollider>();
        //meshCol.convex = true;
    }
Esempio n. 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);
    }
Esempio n. 3
0
 private void Awake()
 {
     fixedJointGrab = GetComponent <VR_FixedJointGrab>();
 }