示例#1
0
        public Quaternion GetRotation(HandsOnVR.Hand hand)
        {
            var orient = (hand == Hand.Left) ? _orientLeft : _orientRight;

            return(_grabbableXform.rotation * orient);
        }
示例#2
0
        public Vector3 GetPosition(HandsOnVR.Hand hand)
        {
            var offset = (hand == Hand.Left) ? _offsetLeft : _offsetRight;

            return(_grabbableXform.position + (_grabbableXform.rotation * offset));
        }