Very complex buildings problem
Posted: Wed Mar 28, 2012 11:44 am
Hi,
I am now creating a 3D game with my team and I decided to use BEPU for its physics. But I don't know how to divide a complex model like pyramid with many passages in it so that it could be used with BEPU. There are so many walls in this pyramid, this model is very complex shape and I would like to just use some functions that will automatically divide this model into the best submeshes (if it is possible) that would be collision shapes. The other way that I thought out is that I can get collision shapes by myself in the code, without any functions. Or maybe it would be better to use StaticMesh? But then in every frame BEPU would go through all triangles of the pyramid (pyramid has 5818 vertices so it maybe is not a best idea?). What is the best idea? I will of course have many other 3D models, that I would like to add to game too.
I am now creating a 3D game with my team and I decided to use BEPU for its physics. But I don't know how to divide a complex model like pyramid with many passages in it so that it could be used with BEPU. There are so many walls in this pyramid, this model is very complex shape and I would like to just use some functions that will automatically divide this model into the best submeshes (if it is possible) that would be collision shapes. The other way that I thought out is that I can get collision shapes by myself in the code, without any functions. Or maybe it would be better to use StaticMesh? But then in every frame BEPU would go through all triangles of the pyramid (pyramid has 5818 vertices so it maybe is not a best idea?). What is the best idea? I will of course have many other 3D models, that I would like to add to game too.