diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 5d7fc9d..7c384b2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2560,7 +2560,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2560 | if (m_host.ParentGroup.IsAttachment) | 2560 | if (m_host.ParentGroup.IsAttachment) |
2561 | { | 2561 | { |
2562 | ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); | 2562 | ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); |
2563 | vel = avatar.Velocity; | 2563 | vel = avatar.GetWorldVelocity(); |
2564 | } | 2564 | } |
2565 | else | 2565 | else |
2566 | { | 2566 | { |
@@ -11221,7 +11221,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
11221 | ret.Add(new LSL_Rotation(av.GetWorldRotation())); | 11221 | ret.Add(new LSL_Rotation(av.GetWorldRotation())); |
11222 | break; | 11222 | break; |
11223 | case ScriptBaseClass.OBJECT_VELOCITY: | 11223 | case ScriptBaseClass.OBJECT_VELOCITY: |
11224 | ret.Add(new LSL_Vector(av.Velocity.X, av.Velocity.Y, av.Velocity.Z)); | 11224 | ret.Add(new LSL_Vector(av.GetWorldVelocity())); |
11225 | break; | 11225 | break; |
11226 | case ScriptBaseClass.OBJECT_OWNER: | 11226 | case ScriptBaseClass.OBJECT_OWNER: |
11227 | ret.Add(new LSL_String(id)); | 11227 | ret.Add(new LSL_String(id)); |
@@ -11342,7 +11342,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
11342 | ScenePresence sp = World.GetScenePresence(obj.ParentGroup.AttachedAvatar); | 11342 | ScenePresence sp = World.GetScenePresence(obj.ParentGroup.AttachedAvatar); |
11343 | 11343 | ||
11344 | if (sp != null) | 11344 | if (sp != null) |
11345 | vel = sp.Velocity; | 11345 | vel = sp.GetWorldVelocity(); |
11346 | } | 11346 | } |
11347 | else | 11347 | else |
11348 | { | 11348 | { |