aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMW2007-08-23 11:18:16 +0000
committerMW2007-08-23 11:18:16 +0000
commit8264ba849f24ed201bfe38e651932cc80fd9d3dc (patch)
tree3693b83e5b6faaef762e03be9c988488737f7173 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
parentAdded danx0r's physics patch, although for now have disabled the lines in Sce... (diff)
downloadopensim-SC_OLD-8264ba849f24ed201bfe38e651932cc80fd9d3dc.zip
opensim-SC_OLD-8264ba849f24ed201bfe38e651932cc80fd9d3dc.tar.gz
opensim-SC_OLD-8264ba849f24ed201bfe38e651932cc80fd9d3dc.tar.bz2
opensim-SC_OLD-8264ba849f24ed201bfe38e651932cc80fd9d3dc.tar.xz
Added a PhysicsActor PhysActor member to SceneObjectPart, and made it so this is set when registering the prims with the physics engine.
Position changes of the prim is now updated straight away to physic engine. (note at the moment, only root prim is registered with physics engine. Think we need to decide how we are going to manage child prims and physics.) As before this is all currently disabled (in scene.cs) until its in a bit more working condition.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 56ac9be..7e34637 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -11,6 +11,7 @@ using OpenSim.Framework.Interfaces;
11using OpenSim.Framework.Types; 11using OpenSim.Framework.Types;
12using OpenSim.Physics.Manager; 12using OpenSim.Physics.Manager;
13using OpenSim.Framework.Data; 13using OpenSim.Framework.Data;
14using OpenSim.Physics.Manager;
14 15
15namespace OpenSim.Region.Environment.Scenes 16namespace OpenSim.Region.Environment.Scenes
16{ 17{
@@ -89,6 +90,10 @@ namespace OpenSim.Region.Environment.Scenes
89 part.GroupPosition = value; 90 part.GroupPosition = value;
90 } 91 }
91 } 92 }
93 if (m_rootPart.PhysActor != null)
94 {
95 m_rootPart.PhysActor.Position = new PhysicsVector(m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y, m_rootPart.GroupPosition.Z);
96 }
92 } 97 }
93 } 98 }
94 99