From c47bca94d23420b164e5f32aa5c781009496e0d3 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 15 Aug 2007 16:57:47 +0000 Subject: * Exploring Group/Part from an app perspective. --- .../Region/Environment/Scenes/SceneObjectGroup.cs | 25 +++++++++++++++++++++- .../Region/Environment/Scenes/SceneObjectPart.cs | 4 ++++ 2 files changed, 28 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 4f98199..2f4d707 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -35,6 +35,12 @@ namespace OpenSim.Region.Environment.Scenes get { return 1; } } + public LLQuaternion Rotation + { + get { return m_rootPart.RotationOffset; } + } + + /// /// /// @@ -471,6 +477,13 @@ namespace OpenSim.Region.Environment.Scenes } } + public string Text + { + get { return m_rootPart.Text; } + set { m_rootPart.Text = value; } + } + + public void SetPartText(string text, uint localID) { SceneObjectPart part = this.GetChildPrim(localID); @@ -626,7 +639,7 @@ namespace OpenSim.Region.Environment.Scenes } #endregion - #region Roation + #region Rotation /// /// /// @@ -791,6 +804,16 @@ namespace OpenSim.Region.Environment.Scenes } #endregion + public override void UpdateMovement() + { + foreach( SceneObjectPart part in m_parts.Values ) + { + part.UpdateMovement(); + } + + base.UpdateMovement(); + } + /// /// Added as a way for the storage provider to reset the scene, /// most likely a better way to do this sort of thing but for now... diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 09a864e..81b2fe4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -561,6 +561,10 @@ namespace OpenSim.Region.Environment.Scenes remoteClient.SendPrimTerseUpdate(m_regionHandle, 64096, LocalID, lPos, mRot); } #endregion + + public virtual void UpdateMovement() + { + } } } -- cgit v1.1