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:
UbitUmarov
2020-10-12 23:20:37 +01:00
parent c7c82773d0
commit 9773ff42c2
4 changed files with 11 additions and 7 deletions

View File

@@ -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;
}