aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
index 1beb761..fc59180 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
@@ -1355,6 +1355,25 @@ namespace OpenSim.Region.Physics.OdePlugin
1355 UpdatePrimBodyData(); 1355 UpdatePrimBodyData();
1356 _parent_scene.actor_name_map[prim_geom] = this; 1356 _parent_scene.actor_name_map[prim_geom] = this;
1357 1357
1358
1359// debug
1360 d.AABB aabb;
1361 d.GeomGetAABB(prim_geom, out aabb);
1362 float x = aabb.MaxX - aabb.MinX;
1363 float y = aabb.MaxY - aabb.MinY;
1364 float z = aabb.MaxZ - aabb.MinZ;
1365 if( x > 60.0f || y > 60.0f || z > 60.0f)
1366 m_log.WarnFormat("[PHYSICS]: large prim geo {0},size {1}, AABBsize <{2},{3},{4}, mesh {5} at {6}",
1367 Name, _size.ToString(), x, y, z, _pbs.SculptEntry ? _pbs.SculptTexture.ToString() : "primMesh", _position.ToString());
1368 else if (x < 0.001f || y < 0.001f || z < 0.001f)
1369 m_log.WarnFormat("[PHYSICS]: small prim geo {0},size {1}, AABBsize <{2},{3},{4}, mesh {5} at {6}",
1370 Name, _size.ToString(), x, y, z, _pbs.SculptEntry ? _pbs.SculptTexture.ToString() : "primMesh", _position.ToString());
1371
1372//
1373
1374
1375
1376
1358 } 1377 }
1359 else 1378 else
1360 m_log.Warn("Setting bad Geom"); 1379 m_log.Warn("Setting bad Geom");