mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
varregion: add plumbing to pass region size from Scene down to the
physics engine. Older physics engines will default to the legacy region size. Update BulletSim to use the new region size information.
This commit is contained in:
@@ -165,14 +165,15 @@ public class BulletConstraint
|
||||
// than making copies.
|
||||
public class BulletHMapInfo
|
||||
{
|
||||
public BulletHMapInfo(uint id, float[] hm) {
|
||||
public BulletHMapInfo(uint id, float[] hm, float pSizeX, float pSizeY) {
|
||||
ID = id;
|
||||
heightMap = hm;
|
||||
terrainRegionBase = OMV.Vector3.Zero;
|
||||
minCoords = new OMV.Vector3(100f, 100f, 25f);
|
||||
maxCoords = new OMV.Vector3(101f, 101f, 26f);
|
||||
minZ = maxZ = 0f;
|
||||
sizeX = sizeY = 256f;
|
||||
sizeX = pSizeX;
|
||||
sizeY = pSizeY;
|
||||
}
|
||||
public uint ID;
|
||||
public float[] heightMap;
|
||||
|
||||
Reference in New Issue
Block a user