void Start()
{
// x_local_offset = arm_tongs.localPosition.x * arm_hand.lossyScale.x;
x_local_offset = arm_tongs.localPosition.x * arm_hand.lossyScale.x * 1.1f;
}
void Update()
{
Vector3 direction = transform.position - arm_base.position;
direction.y = 0; // Ignore the y-axis
transform.rotation = Quaternion.LookRotation(direction);
target_for_math.localPosition = new Vector3(-x_local_offset + magic_number_x, magic_number_y, magic_number_z);
}
실패한 코드. 내일 월드 좌표계 좌표만으로 기하학적으로 다시 풀어보기.