From f74a9bcdc7b0682c1c205e9d640fbfa5f214840b Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Thu, 24 Jul 2008 07:45:58 +0000 Subject: Implements llSetForce() and llGetForce(). These are experimental and the units may not match the Linden implementation. --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index f0b1686..a9709b1 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1374,6 +1374,14 @@ namespace OpenSim.Region.Environment.Scenes } } + public PhysicsVector GetForce() + { + if (PhysActor != null) + return PhysActor.Force; + else + return new PhysicsVector(); + } + [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData( @@ -2296,6 +2304,14 @@ namespace OpenSim.Region.Environment.Scenes } } + public void SetForce(PhysicsVector force) + { + if (PhysActor != null) + { + PhysActor.Force = force; + } + } + public void SetGroup(LLUUID groupID, IClientAPI client) { _groupID = groupID; -- cgit v1.1