Skip to content

Irregular voxel terrain collisions #1067

Answered by jrouwe
jazzprogramming asked this question in Q&A
Discussion options

You must be logged in to vote

What shape types do the compound shapes contain?

You mentioned that your shapes were 'a convex polyhedron' so I assumed that the terrain was built out of these shapes and that is what I proposed to put in the StaticCompoundShape.

If you want to do hidden surface removal then you would indeed need to create a MeshShape per cube, but then obviously you're creating (smaller) MeshShapes on the fly. I can't predict if that is going to be fast enough. Some effort was made to make the creation faster, but it was always meant to be an offline process as it tries to optimize the resulting shape for a balance between speed and memory usage and it bit packs all data in a single memory block.

Doing…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jazzprogramming
Comment options

@jrouwe
Comment options

Answer selected by jazzprogramming
@jazzprogramming
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants