Custom Bounding Box

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
SadWolf
Posts: 4
Joined: Tue May 15, 2012 5:06 pm

Custom Bounding Box

Post by SadWolf »

Is there a way to create custom bounding boxes and move them to a position?
i didn't find "setPosition" method in aabbox3d
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Custom Bounding Box

Post by REDDemon »

setPosition is for scene nodes only,

in matrix class you have method for transforming bouding boxes

Code: Select all

void transformBox(core::aabbox3d<f32>& box) const;
you have just to set translation in the matrix and then transform your box.

(not that if bounding box is of a scene node wich you already have translated you don't need to set translation, but just to transform the box)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
SadWolf
Posts: 4
Joined: Tue May 15, 2012 5:06 pm

Re: Custom Bounding Box

Post by SadWolf »

So I can scale and rotate the box in the same way, right?
Post Reply