Is there a way to get the size of a 3D mesh?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Rabid

Working with 2D sprites, you can access the width and the height of the texture used calling the methods get_width and get_height. Is there something similar to this but for 3D meshes? I need to stack blocks one on top of another in runtime and I need the height of the blocks to know where to put them.

:bust_in_silhouette: Reply From: wombatstampede

This should be get_aabb()
https://docs.godotengine.org/en/latest/classes/class_visualinstance.html?highlight=aabb
(Meshinstance is a descendant of GeometryInstance->Visualinstance))
The aabb should be the bounding box of the mesh.