#Make a colliding 3d map of a single 3d object
16 messages · Page 1 of 1 (latest)
Using a single model as a map is a bad idea, because of this reason
mesh collisions are not great for this, and are slow
most games would break the map into smaller objects that you can do collisions on sperately
Ok, i'll do this
you may want to look into a scenegraph system, like an Octree or a Spaitial Hash
but still, if I have a single building, how should I make it so that my player doesn't go through the wall?
you don't want to have to check every object in the world every time.
most games would put a collision volume around that
using the mesh for collision is not great
but if you wanted to use the mesh, you'd have to write some collision code that does something like a cylinder vs mesh test
that is an example of FPS-like collisions against bounding box volumes.
ok, thanks a lot