btHeightFieldTerrainShape, init new member

instead height of example terrain
This commit is contained in:
Erwin Coumans
2019-07-23 15:23:11 -07:00
parent ebde9926a8
commit a42acfbe31
3 changed files with 6 additions and 2 deletions

View File

@@ -491,7 +491,7 @@ getRawHeightfieldData
for (int j = 0; j < width; ++j)
{
float y = j * s_gridSpacing;
float z = double(image[i*3+width*j*3])*(4./256.);
float z = double(image[i*3+width*j*3])*(40./256.);
convertFromFloat(p, z, type);
p += bytesPerElement;
}