void LookZ()
{
var dir = Player.position - transform.position;
Quaternion LookAtRotation = Quaternion.LookRotation(dir);
Quaternion LookAtRotationOnly_Y = Quaternion.Euler(transform.rotation.eulerAngles.x, LookAtRotation.eulerAngles.y, transform.rotation.eulerAngles.z);
transform.rotation = LookAtRotationOnly_Y;
}
댓글 없음:
댓글 쓰기