I created an OpenGL program that renders a heightmap, but I'm not sure what the best approach for handling collision detection would be. I know there's a HeightFieldTerrainShape already in Bullet but I'm not sure if it supports heightmaps with holes(for tunnels, ect.)
Should I just make my own custom concave shapes for the heightmaps or should I try to implement hole support for the HeightFieldTerrainShape?
Best Approach For Heightmaps?
-
- Posts: 225
- Joined: Wed Jan 07, 2009 11:43 am
- Location: London
Re: Best Approach For Heightmaps?
the basic heightmap shape doesn't have support for holes like that, you'd probably need a standard bvh mesh?
-
- Posts: 109
- Joined: Tue May 01, 2012 10:42 am
Re: Best Approach For Heightmaps?
The btheightfieldshape is not extremely complex, i also made some adjustsments to it without much problems.