aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs
diff options
context:
space:
mode:
authorMW2007-08-03 11:44:30 +0000
committerMW2007-08-03 11:44:30 +0000
commitdde8aafb8addbb7ae00802c31f27d51456170000 (patch)
tree6790b2130113e3c2c10c100dac8f33bcd294ac5e /OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs
parent*Estate settings are now saved in their own configuration file called estate_... (diff)
downloadopensim-SC-dde8aafb8addbb7ae00802c31f27d51456170000.zip
opensim-SC-dde8aafb8addbb7ae00802c31f27d51456170000.tar.gz
opensim-SC-dde8aafb8addbb7ae00802c31f27d51456170000.tar.bz2
opensim-SC-dde8aafb8addbb7ae00802c31f27d51456170000.tar.xz
More work on the AllNewSceneObject* classes.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs40
1 files changed, 40 insertions, 0 deletions
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
252 #endregion 252 #endregion
253 253
254 #region Constructors 254 #region Constructors
255 /// <summary>
256 /// Create a completely new SceneObjectPart (prim)
257 /// </summary>
258 /// <param name="regionHandle"></param>
259 /// <param name="parent"></param>
260 /// <param name="ownerID"></param>
261 /// <param name="localID"></param>
262 /// <param name="shape"></param>
263 /// <param name="position"></param>
255 public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 position) 264 public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 position)
256 { 265 {
257 this.m_regionHandle = regionHandle; 266 this.m_regionHandle = regionHandle;
@@ -266,6 +275,10 @@ namespace OpenSim.Region.Environment.Scenes
266 this.m_Shape = shape; 275 this.m_Shape = shape;
267 276
268 this.OffsetPosition = position; 277 this.OffsetPosition = position;
278 this.RotationOffset = LLQuaternion.Identity;
279 this.Velocity = new LLVector3(0, 0, 0);
280 this.AngularVelocity = new LLVector3(0, 0, 0);
281 this.Acceleration = new LLVector3(0, 0, 0);
269 282
270 //temporary code just so the m_flags field doesn't give a compiler warning 283 //temporary code just so the m_flags field doesn't give a compiler warning
271 if (m_flags ==LLObject.ObjectFlags.AllowInventoryDrop) 284 if (m_flags ==LLObject.ObjectFlags.AllowInventoryDrop)
@@ -273,6 +286,33 @@ namespace OpenSim.Region.Environment.Scenes
273 286
274 } 287 }
275 } 288 }
289
290 /// <summary>
291 /// Recreate a SceneObjectPart (prim)
292 /// </summary>
293 /// <param name="regionHandle"></param>
294 /// <param name="parent"></param>
295 /// <param name="ownerID"></param>
296 /// <param name="localID"></param>
297 /// <param name="shape"></param>
298 /// <param name="position"></param>
299 public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, int creationDate, LLUUID ownerID, LLUUID creatorID, LLUUID lastOwnerID, uint localID, PrimitiveBaseShape shape, LLVector3 position, LLQuaternion rotation, uint flags)
300 {
301 this.m_regionHandle = regionHandle;
302 this.m_parentGroup = parent;
303
304 this.CreationDate = creationDate;
305 this.OwnerID = ownerID;
306 this.CreatorID = creatorID;
307 this.LastOwnerID = lastOwnerID;
308 this.UUID = LLUUID.Random();
309 this.LocalID = (uint)(localID);
310 this.m_Shape = shape;
311
312 this.OffsetPosition = position;
313 this.RotationOffset = rotation;
314 this.ObjectFlags = flags;
315 }
276 #endregion 316 #endregion
277 317
278 #region Update Scheduling 318 #region Update Scheduling