Archive 17/01/2023.

Collision meshes

smellymumbler

I wanted to make sure that I’m not crazy or stupid by doing it this way. I’m building all my levels on Blender and, therefore, generating a box collision mesh or something wouldn’t work. So, I’m manually building a collision mesh inside Blender, on top of my level, that my custom exporter separates based on the prefix of the meshes inside Blender.

Kinda like this: https://www.katsbits.com/smforum/index.php?topic=837.0

But for the whole level. Is that the “right” way to do it?

Modanung

In some cases I too consider this the best approach, but it’s usually probably best avoided.

Leith

I recently worked on a commercial 3D networked racing game, which involved tracks with a half-pipe shape. We ended up getting our artists to cut the static world into 16 pieces in a regular grid, and simplifying the collision meshes from those cell geometries based on an angular error term. Cutting up the world allowed both the physics sim and the renderer to cull things - but too many things is also bad.

Modanung

The common solution is to split up your world into reusable parts combined with terrain.