diff options
Diffstat (limited to 'OpenSim/Region/Physics/ChOdePlugin')
-rw-r--r-- | OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs index 983431d..0179240 100644 --- a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs | |||
@@ -215,6 +215,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
215 | parent_scene.GetTerrainHeightAtXY(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f)) + 0.5f); | 215 | parent_scene.GetTerrainHeightAtXY(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f)) + 0.5f); |
216 | m_log.Warn("[PHYSICS]: Got nonFinite Object create Position"); | 216 | m_log.Warn("[PHYSICS]: Got nonFinite Object create Position"); |
217 | } | 217 | } |
218 | |||
218 | _position = pos; | 219 | _position = pos; |
219 | m_taintposition = pos; | 220 | m_taintposition = pos; |
220 | PID_D = parent_scene.bodyPIDD; | 221 | PID_D = parent_scene.bodyPIDD; |
@@ -254,7 +255,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
254 | _parent_scene = parent_scene; | 255 | _parent_scene = parent_scene; |
255 | m_targetSpace = (IntPtr)0; | 256 | m_targetSpace = (IntPtr)0; |
256 | 257 | ||
257 | if (pos.Z < 0) | 258 | // if (pos.Z < 0) |
259 | if (pos.Z < parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y)) | ||
258 | m_isphysical = false; | 260 | m_isphysical = false; |
259 | else | 261 | else |
260 | { | 262 | { |