0 votes

The AABB's intersection()-method obviously doesn't take the object's position, rotation and scale into account.
The position can be accounted for by adjusting the AABB's position property according to the mesh-instance's origin-position. But I am stumped as to how to address the fact that the AABB does not reflect rotation and scale. I assumed that the bounding box would span around the rotated object correctly but this does not happen. No matter how one rotates or scales the object, the AABB will always reflect the unrotated and unscaled version of the object. There surely has to be a solution for this as the AABBs would be fairly useless otherwise?

in Engine by (12 points)

1 Answer

+2 votes
by (27,902 points)

Thanks, that was the solution!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.