aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 6447403..5790591 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -578,6 +578,16 @@ namespace OpenSim.Region.Environment.Scenes
578 SetPartAsRoot(newPart); 578 SetPartAsRoot(newPart);
579 } 579 }
580 580
581 public void applyImpulse(PhysicsVector impulse)
582 {
583 SceneObjectPart rootpart = m_rootPart;
584 if (m_rootPart.PhysActor != null)
585 {
586 m_rootPart.PhysActor.AddForce(impulse);
587 m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor);
588 }
589 }
590
581 public void SetRootPartOwner(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID) 591 public void SetRootPartOwner(SceneObjectPart part, LLUUID cAgentID, LLUUID cGroupID)
582 { 592 {
583 part.LastOwnerID = part.OwnerID; 593 part.LastOwnerID = part.OwnerID;