diff options
author | Teravus Ovares | 2008-02-12 07:32:32 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-12 07:32:32 +0000 |
commit | e5ede36f0c8974dc81d1755d16513641aff535c2 (patch) | |
tree | ea29d39f83ceb72b61d98184aab08c90ee3d7b10 /OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs | |
parent | * A bunch of updates to make things more smooth. (diff) | |
download | opensim-SC-e5ede36f0c8974dc81d1755d16513641aff535c2.zip opensim-SC-e5ede36f0c8974dc81d1755d16513641aff535c2.tar.gz opensim-SC-e5ede36f0c8974dc81d1755d16513641aff535c2.tar.bz2 opensim-SC-e5ede36f0c8974dc81d1755d16513641aff535c2.tar.xz |
* Physical prim cross borders and continue from where the left off on the other side now, assuming the region on the other side has physical prim enabled.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs index 6d911f1..4982613 100644 --- a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs +++ b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs | |||
@@ -175,6 +175,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
175 | public void CreatePrimFromXml(string xmlData) | 175 | public void CreatePrimFromXml(string xmlData) |
176 | { | 176 | { |
177 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); | 177 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); |
178 | LLVector3 receivedVelocity = obj.RootPart.Velocity; | ||
179 | //System.Console.WriteLine(obj.RootPart.Velocity.ToString()); | ||
178 | m_innerScene.AddEntityFromStorage(obj); | 180 | m_innerScene.AddEntityFromStorage(obj); |
179 | 181 | ||
180 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); | 182 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); |
@@ -191,6 +193,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
191 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, | 193 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, |
192 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z), UsePhysics); | 194 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z), UsePhysics); |
193 | rootPart.DoPhysicsPropertyUpdate(UsePhysics, true); | 195 | rootPart.DoPhysicsPropertyUpdate(UsePhysics, true); |
196 | rootPart.Velocity = receivedVelocity; | ||
197 | |||
194 | } | 198 | } |
195 | } | 199 | } |
196 | 200 | ||