normalize quaternion.Slerp outputs
Signed-off-by: Melanie <melanie@t-data.com>connector_plugin
parent
28483150e2
commit
32171708c3
|
@ -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--;
|
||||||
|
|
Loading…
Reference in New Issue