Arbitrary axis aligned bounding box

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Posts: 7
Joined: Thu Oct 09, 2014 8:26 am

Arbitrary axis aligned bounding box

Post by shapeare2014 »

How can I calculate a bounding box that is aligned according to another object :roll: ?

The figure in the following link is an example.
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!

User avatar
OGRE Team Member
OGRE Team Member
Posts: 4293
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 127

Re: Arbitrary axis aligned bounding box

Post 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: ... ding%20Box ... ding%20Box
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...

Post Reply