diff options
author | Teravus Ovares | 2007-12-23 13:14:56 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-23 13:14:56 +0000 |
commit | b2903c4a8a2e36f570d824a57587be2b24c24d36 (patch) | |
tree | b8a198d298780c2feeef7f60de13bae2a95ca55a /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | Some log fixing for the LoadRegionsPlugin (diff) | |
download | opensim-SC-b2903c4a8a2e36f570d824a57587be2b24c24d36.zip opensim-SC-b2903c4a8a2e36f570d824a57587be2b24c24d36.tar.gz opensim-SC-b2903c4a8a2e36f570d824a57587be2b24c24d36.tar.bz2 opensim-SC-b2903c4a8a2e36f570d824a57587be2b24c24d36.tar.xz |
* Patch from Alondria - Added LLFunctions llGetMass(), llGetLandOwnerAt(), llGetVel(), llGround()
Diffstat (limited to '')
-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 5398de0..66fc53c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -1225,6 +1225,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
1225 | 1225 | ||
1226 | #endregion | 1226 | #endregion |
1227 | 1227 | ||
1228 | #region Physics | ||
1229 | |||
1230 | public float GetMass() | ||
1231 | { | ||
1232 | if (PhysActor != null) | ||
1233 | { | ||
1234 | return PhysActor.Mass; | ||
1235 | } | ||
1236 | else | ||
1237 | { | ||
1238 | return 0; | ||
1239 | } | ||
1240 | } | ||
1241 | |||
1242 | #endregion | ||
1243 | |||
1228 | #region Texture | 1244 | #region Texture |
1229 | 1245 | ||
1230 | /// <summary> | 1246 | /// <summary> |