Getting local point position in global space is confusing #8501
-
I need to take a local vector from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For |
Beta Was this translation helpful? Give feedback.
Transform::back
is not a position but a normalized vector.You can use
global_transform.affine().transform_vector3(vector).normalize()
to transform a local normalized vector to a global one.GlobalTransform::transform_point
is for positions and the docs on it are currently wrong and state the opposite of what it actually does (It actually transforms the point from local to global).For
Transform::back
you can useGlobalTransform::back
instead.