diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 2481dd2..cf8637f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -605,6 +605,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
605 | } | 605 | } |
606 | } | 606 | } |
607 | 607 | ||
608 | public override Vector3 Velocity | ||
609 | { | ||
610 | get { return RootPart.Velocity; } | ||
611 | set { RootPart.Velocity = value; } | ||
612 | } | ||
613 | |||
608 | private void CrossAgentToNewRegionCompleted(IAsyncResult iar) | 614 | private void CrossAgentToNewRegionCompleted(IAsyncResult iar) |
609 | { | 615 | { |
610 | CrossAgentToNewRegionDelegate icon = (CrossAgentToNewRegionDelegate)iar.AsyncState; | 616 | CrossAgentToNewRegionDelegate icon = (CrossAgentToNewRegionDelegate)iar.AsyncState; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 613f9b5..d32b20a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1539,6 +1539,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1539 | // or flexible | 1539 | // or flexible |
1540 | if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible)) | 1540 | if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible)) |
1541 | { | 1541 | { |
1542 | Vector3 velocity = Velocity; | ||
1542 | try | 1543 | try |
1543 | { | 1544 | { |
1544 | PhysActor = ParentGroup.Scene.PhysicsScene.AddPrimShape( | 1545 | PhysActor = ParentGroup.Scene.PhysicsScene.AddPrimShape( |
@@ -1570,6 +1571,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1570 | DoPhysicsPropertyUpdate(RigidBody, true); | 1571 | DoPhysicsPropertyUpdate(RigidBody, true); |
1571 | PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0); | 1572 | PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0); |
1572 | 1573 | ||
1574 | Velocity = velocity; | ||
1575 | PhysActor.Velocity = velocity; | ||
1576 | |||
1573 | if (!building) | 1577 | if (!building) |
1574 | PhysActor.Building = false; | 1578 | PhysActor.Building = false; |
1575 | } | 1579 | } |