Exemplo n.º 1
0
        private void UpdatePose()
        {
            if (!_hasAvatar)
            {
                return;
            }

            Pose rootPose = _avatar.GetRootPose();

            transform.SetPositionAndRotation(rootPose.position, rootPose.rotation);

            Pose headPose = _avatar.GetPose(AvatarPoseType.Head);

            _headTrans.SetPositionAndRotation(headPose.position, headPose.rotation);

            Pose leftPose = _avatar.GetPose(AvatarPoseType.Left);

            _leftHandTrans.SetPositionAndRotation(leftPose.position, leftPose.rotation);

            Pose rightPose = _avatar.GetPose(AvatarPoseType.Right);

            _rightHandTrans.SetPositionAndRotation(rightPose.position, rightPose.rotation);
        }