diff options
author | John Hurliman | 2009-11-02 11:28:35 -0800 |
---|---|---|
committer | John Hurliman | 2009-11-02 11:28:35 -0800 |
commit | 67ac9881faf2034facfe92613538938695c2cda9 (patch) | |
tree | ac2fcdfe3c9c99120ba2c9901d5175e1389fa622 /OpenSim/Region/ScriptEngine | |
parent | Reverting the memory leak patch for MySQL. Problems have been reported with t... (diff) | |
download | opensim-SC_OLD-67ac9881faf2034facfe92613538938695c2cda9.zip opensim-SC_OLD-67ac9881faf2034facfe92613538938695c2cda9.tar.gz opensim-SC_OLD-67ac9881faf2034facfe92613538938695c2cda9.tar.bz2 opensim-SC_OLD-67ac9881faf2034facfe92613538938695c2cda9.tar.xz |
Removing duplicate SceneObjectPart.RotationalVelocity property
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 64f7c8d..0ea62d7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2163,7 +2163,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2163 | public LSL_Vector llGetOmega() | 2163 | public LSL_Vector llGetOmega() |
2164 | { | 2164 | { |
2165 | m_host.AddScriptLPS(1); | 2165 | m_host.AddScriptLPS(1); |
2166 | return new LSL_Vector(m_host.RotationalVelocity.X, m_host.RotationalVelocity.Y, m_host.RotationalVelocity.Z); | 2166 | return new LSL_Vector(m_host.AngularVelocity.X, m_host.AngularVelocity.Y, m_host.AngularVelocity.Z); |
2167 | } | 2167 | } |
2168 | 2168 | ||
2169 | public LSL_Float llGetTimeOfDay() | 2169 | public LSL_Float llGetTimeOfDay() |
@@ -3159,7 +3159,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3159 | public void llTargetOmega(LSL_Vector axis, double spinrate, double gain) | 3159 | public void llTargetOmega(LSL_Vector axis, double spinrate, double gain) |
3160 | { | 3160 | { |
3161 | m_host.AddScriptLPS(1); | 3161 | m_host.AddScriptLPS(1); |
3162 | m_host.RotationalVelocity = new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)); | ||
3163 | m_host.AngularVelocity = new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)); | 3162 | m_host.AngularVelocity = new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)); |
3164 | m_host.ScheduleTerseUpdate(); | 3163 | m_host.ScheduleTerseUpdate(); |
3165 | m_host.SendTerseUpdateToAllClients(); | 3164 | m_host.SendTerseUpdateToAllClients(); |