mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
don't use 'funny' Quaternions
This commit is contained in:
@@ -110,6 +110,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
||||
PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere();
|
||||
Vector3 groupPosition = new Vector3(10, 20, 30);
|
||||
Quaternion rotationOffset = new Quaternion(20, 30, 40, 50);
|
||||
rotationOffset.Normalize();
|
||||
// Vector3 offsetPosition = new Vector3(5, 10, 15);
|
||||
|
||||
return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, Vector3.Zero) { Name = partName };
|
||||
@@ -122,6 +123,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
||||
PrimitiveBaseShape shape = PrimitiveBaseShape.CreateCylinder();
|
||||
Vector3 groupPosition = new Vector3(90, 80, 70);
|
||||
Quaternion rotationOffset = new Quaternion(60, 70, 80, 90);
|
||||
rotationOffset.Normalize();
|
||||
Vector3 offsetPosition = new Vector3(20, 25, 30);
|
||||
|
||||
return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, offsetPosition) { Name = partName };
|
||||
|
||||
Reference in New Issue
Block a user