diff options
author | UbitUmarov | 2015-11-22 02:22:48 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-22 02:22:48 +0000 |
commit | 541d2ce2cd92c5926ba42a7ab9f2f47537873fe2 (patch) | |
tree | 19644aad8aabf1b49b3e9338e9ae0ca8559c3227 /OpenSim/Region | |
parent | Changes to Load Oar options and new code to support importing OARs with diffe... (diff) | |
download | opensim-SC-541d2ce2cd92c5926ba42a7ab9f2f47537873fe2.zip opensim-SC-541d2ce2cd92c5926ba42a7ab9f2f47537873fe2.tar.gz opensim-SC-541d2ce2cd92c5926ba42a7ab9f2f47537873fe2.tar.bz2 opensim-SC-541d2ce2cd92c5926ba42a7ab9f2f47537873fe2.tar.xz |
don't use 'funny' Quaternions
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs index 9f197f5..f6065a0 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | |||
@@ -110,6 +110,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
110 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); | 110 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); |
111 | Vector3 groupPosition = new Vector3(10, 20, 30); | 111 | Vector3 groupPosition = new Vector3(10, 20, 30); |
112 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); | 112 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); |
113 | rotationOffset.Normalize(); | ||
113 | // Vector3 offsetPosition = new Vector3(5, 10, 15); | 114 | // Vector3 offsetPosition = new Vector3(5, 10, 15); |
114 | 115 | ||
115 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, Vector3.Zero) { Name = partName }; | 116 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, Vector3.Zero) { Name = partName }; |
@@ -122,6 +123,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
122 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateCylinder(); | 123 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateCylinder(); |
123 | Vector3 groupPosition = new Vector3(90, 80, 70); | 124 | Vector3 groupPosition = new Vector3(90, 80, 70); |
124 | Quaternion rotationOffset = new Quaternion(60, 70, 80, 90); | 125 | Quaternion rotationOffset = new Quaternion(60, 70, 80, 90); |
126 | rotationOffset.Normalize(); | ||
125 | Vector3 offsetPosition = new Vector3(20, 25, 30); | 127 | Vector3 offsetPosition = new Vector3(20, 25, 30); |
126 | 128 | ||
127 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, offsetPosition) { Name = partName }; | 129 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, offsetPosition) { Name = partName }; |