diff options
author | UbitUmarov | 2012-10-09 02:57:51 +0100 |
---|---|---|
committer | UbitUmarov | 2012-10-09 02:57:51 +0100 |
commit | 5ef48c59808743ca36c0d768bce2d0fbbe8f4c5a (patch) | |
tree | eb9b7835a84eabd38a051cacd5b5c4df90b9e925 /OpenSim | |
parent | fire a extra terseupdate when stopping (like in loosing physics). In some (diff) | |
download | opensim-SC-5ef48c59808743ca36c0d768bce2d0fbbe8f4c5a.zip opensim-SC-5ef48c59808743ca36c0d768bce2d0fbbe8f4c5a.tar.gz opensim-SC-5ef48c59808743ca36c0d768bce2d0fbbe8f4c5a.tar.bz2 opensim-SC-5ef48c59808743ca36c0d768bce2d0fbbe8f4c5a.tar.xz |
temporary debug code
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 19 |
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"); |