Well, I need to load some md2 or 3DS person models, one at time, but I need it to fit so the camera looks it completly. I cant change the camera position so I need to rescale the object3d. in anyway I can do it manually, but I dont know how to get the y size of a model. I wa thinking on doing this.
while (Math.abs (Object3D.getYSize ()-desiredSize)<0.5) {
if (Object3D.getYSize ()<desiredSize) Object3D.rescale (1.1f);
else {
Object3D.rescale (0.99f);
}
}
But I dont know how to get the size of the Object3D.