mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
define constants for simulation height (-100,50000m) and terrain heightmap (-100,4000). No option. compile time decision. use them at ubOde
This commit is contained in:
@@ -177,11 +177,11 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
|
||||
if(pos.IsFinite())
|
||||
{
|
||||
if(pos.Z > 99999f)
|
||||
if(pos.Z > Constants.MaxSimulationHeight)
|
||||
{
|
||||
pos.Z = parent_scene.GetTerrainHeightAtXY(127,127) + 5;
|
||||
}
|
||||
if(pos.Z < -100f) // shouldn't this be 0 ?
|
||||
if(pos.Z < Constants.MinSimulationHeight) // shouldn't this be 0 ?
|
||||
{
|
||||
pos.Z = parent_scene.GetTerrainHeightAtXY(127,127) + 5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user