Hi
it seems to get the size (width, height, length) of an object, we can do :
Function GetObjectWidth(i)
w# = GetObjectSizeMaxX(i) - GetObjectSizeMinX(i)
Endfunction w#
Function GetObjectLength(i)
l# = GetObjectSizeMaxZ(i) - GetObjectSizeMinZ(i)
Endfunction l#
Function GetObjectHeight(i)
w# = GetObjectSizeMaxY(i) - GetObjectSizeMinY(i)
Endfunction w#
But it doesnt return the good size with imported 3D model (not primitive) with several meshs.
In blender my model is :
Width = 6.4
height = 11.5
Lenght = 2.8
In agk, I get (with the functions) :
W : 6.04
H : 8
L : 2.33
Even if I use only the MaxY, I can't get the correct height/width/length, as we can see here (this object has several meshs) :
(minY : 2.68 / MaxY : 10.67)
So how to get the correct width/height/length of an imported 3D model with several meshs ?
EDIT :
ok, it seems it works in DAE, but not in x format.
AGK2 tier1 - http://www.dracaena-studio.com