Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork

avinationmerge
ubit 2012-10-10 01:36:19 +02:00
commit a271afa2aa
1 changed files with 6 additions and 0 deletions

View File

@ -2247,6 +2247,12 @@ namespace OpenSim.Region.Physics.OdePlugin
_orientation.Z = qtmp.Z;
_orientation.W = qtmp.W;
// Debug
float qlen = _orientation.Length();
if (qlen > 1.01f || qlen < 0.99)
m_log.WarnFormat("[PHYSICS]: Got nonnorm quaternion from geom in Object {0} norm {1}", Name, qlen);
//
d.Vector3 lpos = d.GeomGetPosition(prim_geom);
_position.X = lpos.X;
_position.Y = lpos.Y;