Here's my code:
RHS = transform.TransformPoint(2, 0, 0);
Debug.DrawRay(transform.position, RHS, Color.blue, 20);
When I ran this, I expected to get a line drawn from the gameObject's transform directly to the right 2 units. Instead it's 1 unit over and half a unit up, as seen in this screenshot:
![alt text][1]
[1]: /storage/temp/85445-debugshot.png
I'm not sure if I'm using the TransformPoint function incorrectly or what is happening.
↧