From dde8aafb8addbb7ae00802c31f27d51456170000 Mon Sep 17 00:00:00 2001
From: MW
Date: Fri, 3 Aug 2007 11:44:30 +0000
Subject: More work on the AllNewSceneObject* classes.
---
.../Environment/Scenes/AllNewSceneObjectPart2.cs | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
(limited to 'OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs')
diff --git a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs
index c4b4b43..62f9b93 100644
--- a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs
+++ b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs
@@ -252,6 +252,15 @@ namespace OpenSim.Region.Environment.Scenes
#endregion
#region Constructors
+ ///
+ /// Create a completely new SceneObjectPart (prim)
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 position)
{
this.m_regionHandle = regionHandle;
@@ -266,6 +275,10 @@ namespace OpenSim.Region.Environment.Scenes
this.m_Shape = shape;
this.OffsetPosition = position;
+ this.RotationOffset = LLQuaternion.Identity;
+ this.Velocity = new LLVector3(0, 0, 0);
+ this.AngularVelocity = new LLVector3(0, 0, 0);
+ this.Acceleration = new LLVector3(0, 0, 0);
//temporary code just so the m_flags field doesn't give a compiler warning
if (m_flags ==LLObject.ObjectFlags.AllowInventoryDrop)
@@ -273,6 +286,33 @@ namespace OpenSim.Region.Environment.Scenes
}
}
+
+ ///
+ /// Recreate a SceneObjectPart (prim)
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, int creationDate, LLUUID ownerID, LLUUID creatorID, LLUUID lastOwnerID, uint localID, PrimitiveBaseShape shape, LLVector3 position, LLQuaternion rotation, uint flags)
+ {
+ this.m_regionHandle = regionHandle;
+ this.m_parentGroup = parent;
+
+ this.CreationDate = creationDate;
+ this.OwnerID = ownerID;
+ this.CreatorID = creatorID;
+ this.LastOwnerID = lastOwnerID;
+ this.UUID = LLUUID.Random();
+ this.LocalID = (uint)(localID);
+ this.m_Shape = shape;
+
+ this.OffsetPosition = position;
+ this.RotationOffset = rotation;
+ this.ObjectFlags = flags;
+ }
#endregion
#region Update Scheduling
--
cgit v1.1