Code: Select all
btHeightfieldTerrainShape::btHeightfieldTerrainShape ( int heightStickWidth,
int heightStickLength,
const void * heightfieldData,
btScalar heightScale,
btScalar minHeight,
btScalar maxHeight,
int upAxis,
PHY_ScalarType heightDataType,
bool flipQuadEdges
)
But what determines the actual length and width of the terrain itself? Does it assume its a square with vertices (-1,-1),(1,-1),(1,1),(1,-1) and then apply the local scaling?