Page 1 of 1

Arbitrary axis aligned bounding box

Posted: Tue Oct 14, 2014 12:18 pm
by shapeare2014
How can I calculate a bounding box that is aligned according to another object :roll: ?

The figure in the following link http://imgur.com/Dul5XaJ is an example.
Image
In both situations, the bounding box of the sphere is aligned with the red box. Simple rotating the bounding box on the left won't get the one on the right!

Re: Arbitrary axis aligned bounding box

Posted: Tue Nov 11, 2014 12:36 am
by spacegaier
Ogre unfortunately only provides AABB = Axis-Aligned Bounding Boxes, so they re always aligned to the global axis. If you definitely need arbitrary bounding boxes that is something you need to take care of yourself.

Those two links might help you get started:
http://www.ogre3d.org/tikiwiki/tiki-ind ... ding%20Box
http://www.ogre3d.org/tikiwiki/tiki-ind ... ding%20Box