示例#1
0
    public void UpdateHands(Pose pose, Transform parentTransform)
    {
        // Child the hands to the object we're working with, simplifies everything
        LeftHand.transform.parent  = parentTransform;
        RightHand.transform.parent = parentTransform;

        // Pose 'em!
        LeftHand.ApplyPose(pose);
        RightHand.ApplyPose(pose);
    }
示例#2
0
    public void UpdateHands(Pose pose, Transform parentTransform)
    {
        LeftHand.transform.parent  = parentTransform;
        RightHand.transform.parent = parentTransform;

        LeftHand.transform.localPosition  = pose.leftHandInfo.attachPosition;
        RightHand.transform.localPosition = pose.rightHandInfo.attachPosition;

        LeftHand.ApplyPose(pose);
        RightHand.ApplyPose(pose);
    }