From ebbbd37605e2954c877454ed8cafd4027f0bdc10 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 28 Sep 2008 21:53:56 +0000 Subject: Added the plumbing for llSetVehicleRotationParam in the classes between the LSL implementation and the underlying physics engines. --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs') 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 NotImplemented("llSetVehicleType"); } + //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in + //CFK 9/28: so these are not complete yet. public void llSetVehicleFloatParam(int param, float value) { m_host.AddScriptLPS(1); @@ -5175,6 +5177,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } } + //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in + //CFK 9/28: so these are not complete yet. public void llSetVehicleVectorParam(int param, LSL_Vector vec) { m_host.AddScriptLPS(1); @@ -5188,10 +5192,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } } + //CFK 9/28: Most, but not all of the underlying plumbing between here and the physics modules is in + //CFK 9/28: so these are not complete yet. public void llSetVehicleRotationParam(int param, LSL_Rotation rot) { m_host.AddScriptLPS(1); - NotImplemented("llSetVehicleRotationParam"); + if (m_host.ParentGroup != null) + { + if (m_host.ParentGroup.RootPart != null) + { + m_host.ParentGroup.RootPart.SetVehicleRotationParam(param, + new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s)); + } + } } public void llSetVehicleFlags(int flags) -- cgit v1.1