Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Possibly to generate bounding box depending on matrix rotation,scale etc?

This topic is 5113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, is it possible to generate a bounding box that will automaitically fit in with the world matrix''s current scale and rotation settings, also the translation. So basically it gets me the edge points, eg a rectangle. Thanks,

Share this post

Link to post
Share on other sites
You are talking about OOBs(Oriented Bounding Boxes) the rotate, scale with the object keeping a nice tight fit.

I only know hot to translate the AABB to another point, suppose you have a wall and it''s AABB having Min & Max points, you move wall to Point NewPos( 70, 100, 60 ) to move AABB also just add this Point ''NewPos'' to Min & Max points or AABB.


Mesh Wall.
Point NewPos = (0, 50, 0);
Wall.Move( NewPos );
AABB.Max += NewPos;
AABB.Min += NewPos;

Hope you got it, and if any one have some tutorial on OBBs please tell me!

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!