you can use like this:
- Code: Select all
ndShapeInstance shape(new ndShapeCylinder(blockBoxSize.m_x, blockBoxSize.m_y, blockBoxSize.m_z));
shape.SavePLY("myPathName.ply");
them you can check how the mesh looks like.
if you can't load ply in yout app, you can download it for free.
https://www.meshlab.net/
I like that tool for debug because, it can handle many kinds of polygons.
for use the polygon are convex, so it is easy, but they are still convex faces not just tringle,
so the tool shows the exact topology of the collision shape.
let us see what is the engine producing, to determine of it is what is causing that crackling.
I just test with a cylinder, because I know they generate generic polygons and the mesh should look like this.