Skip to content

Getting local point position in global space is confusing #8501

Discussion options

You must be logged in to vote

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 use GlobalTransform::back instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JohnTheCoolingFan
Comment options

Answer selected by JohnTheCoolingFan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants