normalize quaternion.Slerp outputs

Signed-off-by: Melanie <melanie@t-data.com>
connector_plugin
UbitUmarov 2012-10-10 01:37:59 +01:00 committed by Melanie
parent 28483150e2
commit 32171708c3
1 changed files with 1 additions and 0 deletions

View File

@ -4584,6 +4584,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
Quaternion rot = Quaternion.Slerp(RotationOffset,APIDTarget,1.0f/(float)m_APIDIterations); Quaternion rot = Quaternion.Slerp(RotationOffset,APIDTarget,1.0f/(float)m_APIDIterations);
rot.Normalize();
UpdateRotation(rot); UpdateRotation(rot);
m_APIDIterations--; m_APIDIterations--;