btHeightFieldTerrainShape, init new member

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

No files matched your search

+1 -1
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;
}