JBullet: How to add heightmap to dynamic world?

132 Views Asked by At

I implements JBullet into my code. Boxes, spheres work prefectly. But I don't have idea how to implement to my world heightmap(as static object). What type of shape I must use and how?

My heightmap array was something like this float[world_size][world_size].

1

There are 1 best solutions below

0
On

As it looks like JBullet does not include the heightmap shape you could propably use the BvhTriangleMeshShape as I think it fits your needs best.