don't use 'funny' Quaternions
parent
0b216c37df
commit
541d2ce2cd
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue