From 39842eb4af3b5a8c52d56c0f7f05ad54f0651bb0 Mon Sep 17 00:00:00 2001
From: John Hurliman
Date: Wed, 16 Sep 2009 15:45:40 -0700
Subject: * Adding Scale to EntityBase * Fixing the incorrect initialization of
EntityBase.Rotation * Removed SceneObjectGroup.GroupRotation and added
overrides for Scale/Rotation/Velocity
---
OpenSim/Region/Framework/Scenes/EntityBase.cs | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes/EntityBase.cs')
diff --git a/OpenSim/Region/Framework/Scenes/EntityBase.cs b/OpenSim/Region/Framework/Scenes/EntityBase.cs
index 00c99c5..3ef4144 100644
--- a/OpenSim/Region/Framework/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Framework/Scenes/EntityBase.cs
@@ -94,7 +94,7 @@ namespace OpenSim.Region.Framework.Scenes
set { m_velocity = value; }
}
- protected Quaternion m_rotation = new Quaternion(0f, 0f, 1f, 0f);
+ protected Quaternion m_rotation;
public virtual Quaternion Rotation
{
@@ -102,6 +102,14 @@ namespace OpenSim.Region.Framework.Scenes
set { m_rotation = value; }
}
+ protected Vector3 m_scale;
+
+ public virtual Vector3 Scale
+ {
+ get { return m_scale; }
+ set { m_scale = value; }
+ }
+
protected uint m_localId;
public virtual uint LocalId
@@ -115,13 +123,9 @@ namespace OpenSim.Region.Framework.Scenes
///
public EntityBase()
{
- m_uuid = UUID.Zero;
-
- m_pos = Vector3.Zero;
- m_velocity = Vector3.Zero;
- Rotation = Quaternion.Identity;
+ m_rotation = Quaternion.Identity;
+ m_scale = Vector3.One;
m_name = "(basic entity)";
- m_rotationalvelocity = Vector3.Zero;
}
///
--
cgit v1.1
From 606e831ff5337fb5e94dcebf9d6852bd4c434d4b Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Thu, 1 Oct 2009 09:38:36 +0900
Subject: Formatting cleanup.
---
OpenSim/Region/Framework/Scenes/EntityBase.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/Framework/Scenes/EntityBase.cs')
diff --git a/OpenSim/Region/Framework/Scenes/EntityBase.cs b/OpenSim/Region/Framework/Scenes/EntityBase.cs
index 00c99c5..c2ec6a5 100644
--- a/OpenSim/Region/Framework/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Framework/Scenes/EntityBase.cs
@@ -130,7 +130,7 @@ namespace OpenSim.Region.Framework.Scenes
public abstract void UpdateMovement();
///
- /// Performs any updates that need to be done at each frame, as opposed to immediately.
+ /// Performs any updates that need to be done at each frame, as opposed to immediately.
/// These included scheduled updates and updates that occur due to physics processing.
///
public abstract void Update();
--
cgit v1.1
From d6301db382111bf57a7893215ea84b7e6b09187e Mon Sep 17 00:00:00 2001
From: Melanie
Date: Fri, 2 Oct 2009 00:45:31 +0100
Subject: Revert "* Adding Scale to EntityBase * Fixing the incorrect
initialization of EntityBase.Rotation * Removed
SceneObjectGroup.GroupRotation and added overrides for
Scale/Rotation/Velocity"
This reverts commit 39842eb4af3b5a8c52d56c0f7f05ad54f0651bb0.
---
OpenSim/Region/Framework/Scenes/EntityBase.cs | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes/EntityBase.cs')
diff --git a/OpenSim/Region/Framework/Scenes/EntityBase.cs b/OpenSim/Region/Framework/Scenes/EntityBase.cs
index 27a0785..c2ec6a5 100644
--- a/OpenSim/Region/Framework/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Framework/Scenes/EntityBase.cs
@@ -94,7 +94,7 @@ namespace OpenSim.Region.Framework.Scenes
set { m_velocity = value; }
}
- protected Quaternion m_rotation;
+ protected Quaternion m_rotation = new Quaternion(0f, 0f, 1f, 0f);
public virtual Quaternion Rotation
{
@@ -102,14 +102,6 @@ namespace OpenSim.Region.Framework.Scenes
set { m_rotation = value; }
}
- protected Vector3 m_scale;
-
- public virtual Vector3 Scale
- {
- get { return m_scale; }
- set { m_scale = value; }
- }
-
protected uint m_localId;
public virtual uint LocalId
@@ -123,9 +115,13 @@ namespace OpenSim.Region.Framework.Scenes
///
public EntityBase()
{
- m_rotation = Quaternion.Identity;
- m_scale = Vector3.One;
+ m_uuid = UUID.Zero;
+
+ m_pos = Vector3.Zero;
+ m_velocity = Vector3.Zero;
+ Rotation = Quaternion.Identity;
m_name = "(basic entity)";
+ m_rotationalvelocity = Vector3.Zero;
}
///
--
cgit v1.1