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::backis 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_pointis 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::backyou can useGlobalTransform::backinstead.