aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs16
1 files changed, 16 insertions, 0 deletions
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
1374 } 1374 }
1375 } 1375 }
1376 1376
1377 public PhysicsVector GetForce()
1378 {
1379 if (PhysActor != null)
1380 return PhysActor.Force;
1381 else
1382 return new PhysicsVector();
1383 }
1384
1377 [SecurityPermission(SecurityAction.LinkDemand, 1385 [SecurityPermission(SecurityAction.LinkDemand,
1378 Flags = SecurityPermissionFlag.SerializationFormatter)] 1386 Flags = SecurityPermissionFlag.SerializationFormatter)]
1379 public virtual void GetObjectData( 1387 public virtual void GetObjectData(
@@ -2296,6 +2304,14 @@ namespace OpenSim.Region.Environment.Scenes
2296 } 2304 }
2297 } 2305 }
2298 2306
2307 public void SetForce(PhysicsVector force)
2308 {
2309 if (PhysActor != null)
2310 {
2311 PhysActor.Force = force;
2312 }
2313 }
2314
2299 public void SetGroup(LLUUID groupID, IClientAPI client) 2315 public void SetGroup(LLUUID groupID, IClientAPI client)
2300 { 2316 {
2301 _groupID = groupID; 2317 _groupID = groupID;