Exemple #1
0
        public override void UpdateController()
        {
            if (enabled)
            {
                if (handAnimator != null)
                {
                    handAnimator.UpdateController();
#if INSTANTVR_ADVANCED
                    if (handMovements != null && selected)
                    {
                        handMovements.thumbCurl  = 0;
                        handMovements.indexCurl  = 0;
                        handMovements.middleCurl = 0;
                        handMovements.ringCurl   = 0;
                        handMovements.littleCurl = 0;
                    }
#endif
                    position = handAnimator.position;
                    rotation = handAnimator.rotation;
                    if (selected)
                    {
                        transform.position = position;
                        transform.rotation = rotation;
                    }
                }
            }
        }
Exemple #2
0
        public override void UpdateController()
        {
            if (enabled)
            {
                if (handAnimator != null)
                {
                    handAnimator.UpdateController();

                    position = handAnimator.position;
                    rotation = handAnimator.rotation;
                    if (selected)
                    {
                        transform.position = position;
                        transform.rotation = rotation;
                    }
                }
            }
        }