diff options
author | UbitUmarov | 2012-04-28 21:36:38 +0100 |
---|---|---|
committer | UbitUmarov | 2012-04-28 21:36:38 +0100 |
commit | dd745f60c201aee7ff48ba81d567e7b38a8f186c (patch) | |
tree | d75ec7775942b912a72bc85d639d6f1dbb206072 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Oooops don't hover underground but do hover (diff) | |
download | opensim-SC-dd745f60c201aee7ff48ba81d567e7b38a8f186c.zip opensim-SC-dd745f60c201aee7ff48ba81d567e7b38a8f186c.tar.gz opensim-SC-dd745f60c201aee7ff48ba81d567e7b38a8f186c.tar.bz2 opensim-SC-dd745f60c201aee7ff48ba81d567e7b38a8f186c.tar.xz |
fix llGetCenterOfMass ( checked with ubitODE only)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8e73eb1..6ee1a5d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5370,7 +5370,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5370 | public LSL_Vector llGetCenterOfMass() | 5370 | public LSL_Vector llGetCenterOfMass() |
5371 | { | 5371 | { |
5372 | m_host.AddScriptLPS(1); | 5372 | m_host.AddScriptLPS(1); |
5373 | Vector3 center = m_host.GetGeometricCenter(); | 5373 | Vector3 center = m_host.GetCenterOfMass(); |
5374 | return new LSL_Vector(center.X,center.Y,center.Z); | 5374 | return new LSL_Vector(center.X,center.Y,center.Z); |
5375 | } | 5375 | } |
5376 | 5376 | ||