Home Technical Talk

Mesh Volume used for Tile placement

Novian
polycounter lvl 12
Offline / Send Message
Novian polycounter lvl 12
All,

I am reviving an old project and wanted to learn how to A.) calculate the volume of a box mesh and then B.) determine how many grid spaces and the location of those grid spaces that volume occupies. For example, idealy the code would take a box and determine that it occupies a 3x3 space in the world then create a 3x3 room in that space using my tile set and delete the original box. Before I jump in I'd like to see if anyone has any advice or known pitfalls I should be aware of.

Thanks very much!

Replies

Sign In or Register to comment.