Quantcast
Channel: Questions in topic: "transform.transformpoint"
Viewing all articles
Browse latest Browse all 29

Having trouble with the transform.TransformPoint function

$
0
0
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.

Viewing all articles
Browse latest Browse all 29

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>