can i cange the bounding box of an object?

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
saulotmalo
Posts: 54
Joined: Wed Oct 04, 2006 6:56 am

can i cange the bounding box of an object?

Post by saulotmalo »

so the question is:
can i cange the bounding box of an object? and... how... I want to make it some litle than the model but scaled in the center.

thanks for helping
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The bounding box should always be the smallest object space oriented bounding box that fits around the object. This is because the bounding box is used for frustum culling and primitive intersection testing.

If you made the bounding box smaller than the extents of the object that it bounds, you would notice some visual issues. For instance when the object got near the edge of the screen it would disappear.

Travis
saulotmalo
Posts: 54
Joined: Wed Oct 04, 2006 6:56 am

Post by saulotmalo »

Thanks, i thinked in this to solve a collision problem but now I've already solved it so i don't have to do this.

thanks
Post Reply