Example #1
0
    public void Save(PreviewHand hand)
    {
        attachPosition = hand.transform.localPosition;
        attachRotation = hand.transform.localRotation;

        fingerRotations = hand.GetJointRotations();
    }
Example #2
0
    public void Save(PreviewHand hand)
    {
        // Save position and rotation
        attachPosition = hand.transform.localPosition;
        attachRotation = hand.transform.localRotation;

        // Save rotations from the hand's current joints
        fingerRotations = hand.GetJointRotations();
    }