diff options
author | UbitUmarov | 2012-10-10 00:36:06 +0100 |
---|---|---|
committer | UbitUmarov | 2012-10-10 00:36:06 +0100 |
commit | c0cdeec4c01624e5cbeda657b2edd111f75b5954 (patch) | |
tree | 0e4777cf2286e198a1260bfe989423528c5e4e59 | |
parent | fix debug :) (diff) | |
download | opensim-SC_OLD-c0cdeec4c01624e5cbeda657b2edd111f75b5954.zip opensim-SC_OLD-c0cdeec4c01624e5cbeda657b2edd111f75b5954.tar.gz opensim-SC_OLD-c0cdeec4c01624e5cbeda657b2edd111f75b5954.tar.bz2 opensim-SC_OLD-c0cdeec4c01624e5cbeda657b2edd111f75b5954.tar.xz |
debug
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 0400899..e086264 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |||
@@ -2247,6 +2247,12 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2247 | _orientation.Z = qtmp.Z; | 2247 | _orientation.Z = qtmp.Z; |
2248 | _orientation.W = qtmp.W; | 2248 | _orientation.W = qtmp.W; |
2249 | 2249 | ||
2250 | // Debug | ||
2251 | float qlen = _orientation.Length(); | ||
2252 | if (qlen > 1.01f || qlen < 0.99) | ||
2253 | m_log.WarnFormat("[PHYSICS]: Got nonnorm quaternion from geom in Object {0} norm {1}", Name, qlen); | ||
2254 | // | ||
2255 | |||
2250 | d.Vector3 lpos = d.GeomGetPosition(prim_geom); | 2256 | d.Vector3 lpos = d.GeomGetPosition(prim_geom); |
2251 | _position.X = lpos.X; | 2257 | _position.X = lpos.X; |
2252 | _position.Y = lpos.Y; | 2258 | _position.Y = lpos.Y; |