When i do a call on processAllTriangles to create and render the shape, it seems to be a inverted in DX?
I believe it has something to do with this one (btHeightfieldTerrainShape::getVertex):
Code: Select all
case 1:
{
vertex.setValue(
(-m_width/btScalar(2.0)) + x,
height,
(-m_length/btScalar(2.0)) + y
);
break;
};