Added the plumbing for llSetVehicleRotationParam

in the classes between the LSL implementation and the
underlying physics engines.
This commit is contained in:
Charles Krinke
2008-09-28 21:53:56 +00:00
parent d68d631dc0
commit ebbbd37605
10 changed files with 69 additions and 1 deletions

View File

@@ -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)