Explain something about Transformed BBox

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Explain something about Transformed BBox

Post by JunkerKun »

My memory fails me. I'm sure I knew this thing before but I just can't remember.
Does getTransformedBoundingBox method return a rotated bounding box or not?
I'm pretty sure it does since I used it to check collisions of rotated cubes but I'm not exactly sure.

Update: It seems it doesn't. How do I use rotated bbox then?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Explain something about Transformed BBox

Post by CuteAlien »

It returns the axis aligned boundingbox of the rotated node. You can't have a rotated aabbox because aabboxes only use 2 vertices.
If you use Irrlicht svn trunk you can use getTransformedBoundingBoxEdges which might do what you need (it returns all 8 corners of the box transformed). If you don't use svn trunk but Irrlicht 1.8 then take a look at the implementation of that function - it's pretty trivial: http://sourceforge.net/p/irrlicht/code/ ... ceneNode.h
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Re: Explain something about Transformed BBox

Post by JunkerKun »

Aw... =3=
Back to implementing SAT then.
Thanks.
Post Reply