18 lines
435 B
C#
18 lines
435 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ArmsPosition : MonoBehaviour
|
|
{
|
|
public Transform leftHand;
|
|
public Transform rightHand;
|
|
|
|
public Vector3 leftHandOffset;
|
|
public Vector3 leftHandRotation;
|
|
void Update()
|
|
{
|
|
leftHandOffset = rightHand.InverseTransformPoint(leftHand.position);
|
|
leftHandRotation= leftHand.eulerAngles;
|
|
}
|
|
}
|