avinationmerge
UbitUmarov 2012-10-10 00:36:06 +01:00
parent a19a189fec
commit c0cdeec4c0
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;