diff options
author | Charles Krinke | 2008-09-28 21:53:56 +0000 |
---|---|---|
committer | Charles Krinke | 2008-09-28 21:53:56 +0000 |
commit | ebbbd37605e2954c877454ed8cafd4027f0bdc10 (patch) | |
tree | 7e8dfed49511939877ffd9fec6981d3be29864e4 /OpenSim/Region/ScriptEngine | |
parent | A little bit further with LLSetVehicleVectorParam. (diff) | |
download | opensim-SC_OLD-ebbbd37605e2954c877454ed8cafd4027f0bdc10.zip opensim-SC_OLD-ebbbd37605e2954c877454ed8cafd4027f0bdc10.tar.gz opensim-SC_OLD-ebbbd37605e2954c877454ed8cafd4027f0bdc10.tar.bz2 opensim-SC_OLD-ebbbd37605e2954c877454ed8cafd4027f0bdc10.tar.xz |
Added the plumbing for llSetVehicleRotationParam
in the classes between the LSL implementation and the
underlying physics engines.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 15 |
1 files changed, 14 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 edc732e..e560d52 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5162,6 +5162,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5162 | NotImplemented("llSetVehicleType"); | 5162 | NotImplemented("llSetVehicleType"); |
5163 | } | 5163 | } |
5164 | 5164 | ||
5165 | //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in | ||
5166 | //CFK 9/28: so these are not complete yet. | ||
5165 | public void llSetVehicleFloatParam(int param, float value) | 5167 | public void llSetVehicleFloatParam(int param, float value) |
5166 | { | 5168 | { |
5167 | m_host.AddScriptLPS(1); | 5169 | m_host.AddScriptLPS(1); |
@@ -5175,6 +5177,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5175 | } | 5177 | } |
5176 | } | 5178 | } |
5177 | 5179 | ||
5180 | //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in | ||
5181 | //CFK 9/28: so these are not complete yet. | ||
5178 | public void llSetVehicleVectorParam(int param, LSL_Vector vec) | 5182 | public void llSetVehicleVectorParam(int param, LSL_Vector vec) |
5179 | { | 5183 | { |
5180 | m_host.AddScriptLPS(1); | 5184 | m_host.AddScriptLPS(1); |
@@ -5188,10 +5192,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5188 | } | 5192 | } |
5189 | } | 5193 | } |
5190 | 5194 | ||
5195 | //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in | ||
5196 | //CFK 9/28: so these are not complete yet. | ||
5191 | public void llSetVehicleRotationParam(int param, LSL_Rotation rot) | 5197 | public void llSetVehicleRotationParam(int param, LSL_Rotation rot) |
5192 | { | 5198 | { |
5193 | m_host.AddScriptLPS(1); | 5199 | m_host.AddScriptLPS(1); |
5194 | NotImplemented("llSetVehicleRotationParam"); | 5200 | if (m_host.ParentGroup != null) |
5201 | { | ||
5202 | if (m_host.ParentGroup.RootPart != null) | ||
5203 | { | ||
5204 | m_host.ParentGroup.RootPart.SetVehicleRotationParam(param, | ||
5205 | new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s)); | ||
5206 | } | ||
5207 | } | ||
5195 | } | 5208 | } |
5196 | 5209 | ||
5197 | public void llSetVehicleFlags(int flags) | 5210 | public void llSetVehicleFlags(int flags) |