AABB Length and Width

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
kklouzal
Posts: 343
Joined: Sun Mar 28, 2010 8:14 pm
Location: USA - Arizona

AABB Length and Width

Post by kklouzal »

Hey guys, I'm trying to get the length and width, not height, of a mesh buffer's bounding box.
I'm looking at MeshBuffer->getBoundingBox() and not too sure which function to use, I'm thinking I need MaxEdge and MinEdge then only look at the X and Z values from those vector3df's ?
Dream Big Or Go Home.
Help Me Help You.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: AABB Length and Width

Post by CuteAlien »

Correct. Or you can use getExtent() which already returns the difference between MaxEdge and MinEdge and use X,Z values from that.
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
Post Reply