Plumb the connection though from llSetVehicleVectorParam

to the various physics engines. No connection to the 
underlying physics simulator yet, just plumbing through
the various classes.
0.6.0-stable
Charles Krinke 2008-09-28 20:20:32 +00:00
parent 3012bfa2a2
commit 3747862999
10 changed files with 78 additions and 33 deletions

View File

@ -2337,11 +2337,19 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public void SetVehicleFloatParam(float value) public void SetVehicleFloatParam(int param, float value)
{ {
if (PhysActor != null) if (PhysActor != null)
{ {
PhysActor.VehicleFloatParam = value; PhysActor.VehicleFloatParam(param, value);
}
}
public void SetVehicleVectorParam(int param, PhysicsVector value)
{
if (PhysActor != null)
{
PhysActor.VehicleVectorParam(param, value);
} }
} }

View File

@ -335,12 +335,16 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; }
} }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
}
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass
{ {
get { return PhysicsVector.Zero; } get { return PhysicsVector.Zero; }

View File

@ -950,12 +950,16 @@ namespace OpenSim.Region.Physics.BulletXPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; }
} }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
}
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass
{ {
get { return PhysicsVector.Zero; } get { return PhysicsVector.Zero; }

View File

@ -175,7 +175,8 @@ namespace OpenSim.Region.Physics.Manager
public abstract float Mass { get; } public abstract float Mass { get; }
public abstract PhysicsVector Force { get; set; } public abstract PhysicsVector Force { get; set; }
public abstract float VehicleFloatParam { get; set; } public abstract void VehicleFloatParam(int param, float value);
public abstract void VehicleVectorParam(int param, PhysicsVector value);
public abstract PhysicsVector GeometricCenter { get; } public abstract PhysicsVector GeometricCenter { get; }
public abstract PhysicsVector CenterOfMass { get; } public abstract PhysicsVector CenterOfMass { get; }
@ -279,10 +280,14 @@ namespace OpenSim.Region.Physics.Manager
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -537,10 +537,14 @@ namespace OpenSim.Region.Physics.OdePlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -1876,10 +1876,14 @@ namespace OpenSim.Region.Physics.OdePlugin
set { m_force = value; } set { m_force = value; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -159,10 +159,14 @@ namespace OpenSim.Region.Physics.POSPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -121,10 +121,14 @@ namespace OpenSim.Region.Physics.POSPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -343,10 +343,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass
@ -679,10 +683,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin
set { return; } set { return; }
} }
public override float VehicleFloatParam public override void VehicleFloatParam(int param, float value)
{ {
get { return 0f; }
set { return; } }
public override void VehicleVectorParam(int param, PhysicsVector value)
{
} }
public override PhysicsVector CenterOfMass public override PhysicsVector CenterOfMass

View File

@ -5170,7 +5170,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
if (m_host.ParentGroup.RootPart != null) if (m_host.ParentGroup.RootPart != null)
{ {
m_host.ParentGroup.RootPart.SetVehicleFloatParam(value); m_host.ParentGroup.RootPart.SetVehicleFloatParam(param, value);
} }
} }
} }