aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
authorubit2012-10-09 03:58:25 +0200
committerubit2012-10-09 03:58:25 +0200
commite62cdc50f446fb1d171498fa62693a929ebaffe2 (patch)
tree0bcae398a5b25e1467624551eb2611185085eaf2 /OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parenttemporary debug code (diff)
downloadopensim-SC-e62cdc50f446fb1d171498fa62693a929ebaffe2.zip
opensim-SC-e62cdc50f446fb1d171498fa62693a929ebaffe2.tar.gz
opensim-SC-e62cdc50f446fb1d171498fa62693a929ebaffe2.tar.bz2
opensim-SC-e62cdc50f446fb1d171498fa62693a929ebaffe2.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to '')
-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");