TransformDirection (direction : Vector3) :
Vector3 Description
Transforms direction from local space to world space.
This operation is not affected by scale or position of the transform. The returned vector has the same length as direction.
< Unity Scripting Manual >
간단히 말해 로컬공간에서 월드공간으로 방향(direction)을 변환하는 함수.
처음에 변환없이 rigidbody.MovePosition 함수를 이용했더니 캐릭터가 이상하게 움직이길래 열심히 찾아 봤더니....
캐릭터가 바라보는 각도에 대한 정보가 필요했다.
Transform.TransformDirection(Vector3)형태
