Exemplo n.º 1
0
        private void OnTriggerEnter(Collider other)
        {
            PoseManager.GetJointFromGameobjectName(other.name, out OvrAvatar.HandType hand, out PoseManager.HandJoint joint);
            if (hand == OvrAvatar.HandType.Right && joint == PoseManager.HandJoint.IndexTip)
            {
                activeIntersections++;

                if (activeIntersections == 1)
                {
                    emitter.EnableEmissionConeGestures = true;
                    //Debug.Log("Enabling interactions with emission cone!");
                }
            }
            PoseManager.OnHandObjectCollisionStart(animScript, other.gameObject);
        }
Exemplo n.º 2
0
        private void OnTriggerEnter(Collider other)
        {
            PoseManager.OnHandObjectCollisionStart(this, other.gameObject);

            PoseManager.GetJointFromGameobjectName(other.name, out OvrAvatar.HandType hand, out PoseManager.HandJoint joint);
            if (joint != PoseManager.HandJoint.IndexTip)
            {
                return;
            }

            foreach (var elem in ApproachUI)
            {
                elem.enabled = true;
            }

            CurJointIntersectionCount++;
        }