Hello, I need to know the size of a 3d object, so I was looking for some way to get the AABB. ArrayMesh unfortunately does not have.
I tried to do the following:
var mdt = MeshDataTool.new()
var m = nd.get_mesh()
#get surface 0 into mesh data tool
var bounds = AABB()
for vtx in range(mdt.get_vertex_count()):
bounds = bounds.expand(nd.global_transform.xform(vert))
But with some simple tests I realized it doesn't work, can anyone help me?