BulletSim: pull heightmap implementation out of the terrain manager so a mesh terrain can be implemented.

This commit is contained in:
Robert Adams
2012-11-20 14:51:50 -08:00
parent 8dd5813889
commit 71b9640dfa
4 changed files with 326 additions and 180 deletions

View File

@@ -152,7 +152,7 @@ public class BulletHeightMapInfo
ID = id;
Ptr = xx;
heightMap = hm;
terrainRegionBase = new Vector2(0f, 0f);
terrainRegionBase = Vector3.Zero;
minCoords = new Vector3(100f, 100f, 25f);
maxCoords = new Vector3(101f, 101f, 26f);
minZ = maxZ = 0f;
@@ -161,7 +161,7 @@ public class BulletHeightMapInfo
public uint ID;
public IntPtr Ptr;
public float[] heightMap;
public Vector2 terrainRegionBase;
public Vector3 terrainRegionBase;
public Vector3 minCoords;
public Vector3 maxCoords;
public float sizeX, sizeY;