diff options
author | Dahlia Trimble | 2008-07-24 07:45:58 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-07-24 07:45:58 +0000 |
commit | f74a9bcdc7b0682c1c205e9d640fbfa5f214840b (patch) | |
tree | 6d30a6964db7d79771a4ec7b655077b813f983b3 /OpenSim/Region/Environment | |
parent | Refactor some tests. (diff) | |
download | opensim-SC_OLD-f74a9bcdc7b0682c1c205e9d640fbfa5f214840b.zip opensim-SC_OLD-f74a9bcdc7b0682c1c205e9d640fbfa5f214840b.tar.gz opensim-SC_OLD-f74a9bcdc7b0682c1c205e9d640fbfa5f214840b.tar.bz2 opensim-SC_OLD-f74a9bcdc7b0682c1c205e9d640fbfa5f214840b.tar.xz |
Implements llSetForce() and llGetForce(). These are experimental and the units may not match the Linden implementation.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 16 |
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; |