예제 #1
0
파일: HandInfo.cs 프로젝트: jayzzer/ABB-VR
    public void Save(PreviewHand hand)
    {
        attachPosition = hand.transform.localPosition;
        attachRotation = hand.transform.localRotation;

        fingerRotations = hand.GetJointRotations();
    }
예제 #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();
    }