Re: [Ardor3d] Exact bounding boxes
Posted by Stefan on Mar 24, 2016; 5:36pm
URL: https://forum.jogamp.org/Ardor3d-Exact-bounding-boxes-tp4036316p4036537.html
Hi,
I think I found it: you have to initialize the bounding box of the sphere using an OrientedBoundingBox like this:
OrientedBoundingBox boundingBox = new OrientedBoundingBox();
boundingBox.correctCorners = true;
sphere.setModelBound(boundingBox, true);
The problem was that I had initialized the bounding box of the sphere with an ordinary BoundingBox. Now, it looks good again.
Regards,
Stefan