I’m making a terraria-style 2d voxel game and I’m wanting to use nphysics/ncollide. I’m attempting to add collision for the terrain, which right now is made up of 512×512 square chunks, each stored in its own contiguous 2d array.
I could use a bunch of Cuboids in a Compound shape, but I’m thinking it could be more performant to implement a custom shape by implementing PointQuery (I’m looking at HeightField as a model).
Can I get some pointers on the traits/structs/algorithms I will need to implement to get this working? Or perhaps I’m off-base and there’s a better way to go about this.