Not sure if this is a bug, or if I’m just being stupid but, according to the docs:
transform.position
is the world space position of the transform. (example: -3.5, 1.7, 2.0)
transform.localPosition
is the local position of the transform. (example: 0.0, 1.7, 0.0)
transform.InverseTransformPoint
Transforms position from world space to local space.
So then, how come transform.InverseTransformPoint(transform.position)
== (0.0, 0.0, 0.0) instead of (0.0, 1.7, 0.0)?
How come transforming my world position to my local position gives me a different value?
Is this a bug? What’s going on here?