diff options
author | Melanie | 2012-04-07 04:52:14 +0100 |
---|---|---|
committer | Melanie | 2012-04-07 04:52:14 +0100 |
commit | b39de2425cac4c2a94a7fdd6c77100ef831d66b4 (patch) | |
tree | 9258928681a82d68b408354e534c32bcf283ad3a /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Merge branch 'ubitwork' (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-b39de2425cac4c2a94a7fdd6c77100ef831d66b4.zip opensim-SC_OLD-b39de2425cac4c2a94a7fdd6c77100ef831d66b4.tar.gz opensim-SC_OLD-b39de2425cac4c2a94a7fdd6c77100ef831d66b4.tar.bz2 opensim-SC_OLD-b39de2425cac4c2a94a7fdd6c77100ef831d66b4.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
OpenSim/Region/CoreModules/World/Land/LandObject.cs
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ed3a7f1..b51d41b 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3617,6 +3617,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
3617 | }); | 3617 | }); |
3618 | } | 3618 | } |
3619 | 3619 | ||
3620 | /// <summary> | ||
3621 | /// Gets the mass. | ||
3622 | /// </summary> | ||
3623 | /// <returns> | ||
3624 | /// The mass. | ||
3625 | /// </returns> | ||
3626 | public float GetMass() | ||
3627 | { | ||
3628 | PhysicsActor pa = PhysicsActor; | ||
3629 | |||
3630 | if (pa != null) | ||
3631 | return pa.Mass; | ||
3632 | else | ||
3633 | return 0; | ||
3634 | } | ||
3635 | |||
3620 | internal void PushForce(Vector3 impulse) | 3636 | internal void PushForce(Vector3 impulse) |
3621 | { | 3637 | { |
3622 | if (PhysicsActor != null) | 3638 | if (PhysicsActor != null) |