mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
remove some MegaRegions code from physics
This commit is contained in:
@@ -171,7 +171,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public bool m_OSOdeLib = false;
|
||||
public bool m_suportCombine = false; // mega suport not tested
|
||||
public Scene m_frameWorkScene = null;
|
||||
|
||||
// private int threadid = 0;
|
||||
@@ -380,8 +379,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
WorldExtents.Y = m_frameWorkScene.RegionInfo.RegionSizeY;
|
||||
m_regionHeight = (uint)WorldExtents.Y;
|
||||
|
||||
m_suportCombine = false;
|
||||
|
||||
lock (OdeLock)
|
||||
{
|
||||
// Create the world and the first space
|
||||
@@ -1938,12 +1935,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
int offsetX = 0;
|
||||
int offsetY = 0;
|
||||
|
||||
if (m_suportCombine)
|
||||
{
|
||||
offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
}
|
||||
|
||||
// get region map
|
||||
IntPtr heightFieldGeom = IntPtr.Zero;
|
||||
if (!RegionTerrain.TryGetValue(new Vector3(offsetX, offsetY, 0), out heightFieldGeom))
|
||||
@@ -2076,12 +2067,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
int offsetX = 0;
|
||||
int offsetY = 0;
|
||||
|
||||
if (m_suportCombine)
|
||||
{
|
||||
offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
|
||||
}
|
||||
|
||||
// get region map
|
||||
IntPtr heightFieldGeom = IntPtr.Zero;
|
||||
Vector3 norm = new Vector3(0, 0, 1);
|
||||
@@ -2224,12 +2209,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
}
|
||||
}
|
||||
|
||||
public override void CombineTerrain(float[] heightMap, Vector3 pOffset)
|
||||
{
|
||||
if(m_suportCombine)
|
||||
SetTerrain(heightMap, pOffset);
|
||||
}
|
||||
|
||||
public void SetTerrain(float[] heightMap, Vector3 pOffset)
|
||||
{
|
||||
if (m_OSOdeLib)
|
||||
@@ -2479,11 +2458,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
return waterlevel;
|
||||
}
|
||||
|
||||
public override bool SupportsCombining()
|
||||
{
|
||||
return m_suportCombine;
|
||||
}
|
||||
|
||||
public override void SetWaterLevel(float baseheight)
|
||||
{
|
||||
waterlevel = baseheight;
|
||||
|
||||
Reference in New Issue
Block a user