I have read how other people have done theirs and understand how it works but when i have tried to implement it myself it seems to be the wrong verision of Xna or either the box is half the size. Is there simple code to do this?
Xna 4.0 Creating BoundyBox
Members - Reputation: 713
Posted 11 April 2013 - 07:11 PM
How exactly does the XNA's built-in BBOX functionality not work for you ?
Before XNA, when I implemented BBOX functionality myself, the basic algorithm is very simple - browse through all vertices and find the Max/Min for X/Y/Z.
Obviously, if you want the smallest sphere possible to encompass the same volume, the computations get more complex.
But the method I described above is, like, half a page worth of code...
VladR My 3rd person action RPG on GreenLight: http://steamcommunity.com/sharedfiles/filedetails/?id=92951596