diff options
author | UbitUmarov | 2012-10-10 01:37:59 +0100 |
---|---|---|
committer | UbitUmarov | 2012-10-10 01:37:59 +0100 |
commit | d554c0d574f9c4763df0bbff931de0f944db53a5 (patch) | |
tree | 5376e942b6805d9db0432fbd0bf44c76b44e2bfe /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | add some quaternion normalizations to keep errors under control (diff) | |
download | opensim-SC_OLD-d554c0d574f9c4763df0bbff931de0f944db53a5.zip opensim-SC_OLD-d554c0d574f9c4763df0bbff931de0f944db53a5.tar.gz opensim-SC_OLD-d554c0d574f9c4763df0bbff931de0f944db53a5.tar.bz2 opensim-SC_OLD-d554c0d574f9c4763df0bbff931de0f944db53a5.tar.xz |
normalize quaternion.Slerp outputs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 66d85c4..1857757 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -5202,6 +5202,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
5202 | } | 5202 | } |
5203 | 5203 | ||
5204 | Quaternion rot = Quaternion.Slerp(RotationOffset,APIDTarget,1.0f/(float)m_APIDIterations); | 5204 | Quaternion rot = Quaternion.Slerp(RotationOffset,APIDTarget,1.0f/(float)m_APIDIterations); |
5205 | rot.Normalize(); | ||
5205 | UpdateRotation(rot); | 5206 | UpdateRotation(rot); |
5206 | 5207 | ||
5207 | m_APIDIterations--; | 5208 | m_APIDIterations--; |