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
parent
3012bfa2a2
commit
3747862999
|
@ -2337,11 +2337,19 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
}
|
||||
|
||||
public void SetVehicleFloatParam(float value)
|
||||
public void SetVehicleFloatParam(int param, float value)
|
||||
{
|
||||
if (PhysActor != null)
|
||||
{
|
||||
PhysActor.VehicleFloatParam = value;
|
||||
PhysActor.VehicleFloatParam(param, value);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetVehicleVectorParam(int param, PhysicsVector value)
|
||||
{
|
||||
if (PhysActor != null)
|
||||
{
|
||||
PhysActor.VehicleVectorParam(param, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -335,10 +335,14 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
|
|||
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
|
||||
|
|
|
@ -950,10 +950,14 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
|||
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
|
||||
|
|
|
@ -175,7 +175,8 @@ namespace OpenSim.Region.Physics.Manager
|
|||
public abstract float Mass { get; }
|
||||
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 CenterOfMass { get; }
|
||||
|
@ -279,10 +280,14 @@ namespace OpenSim.Region.Physics.Manager
|
|||
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
|
||||
|
|
|
@ -537,10 +537,14 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
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
|
||||
|
|
|
@ -1876,10 +1876,14 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
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
|
||||
|
|
|
@ -159,10 +159,14 @@ namespace OpenSim.Region.Physics.POSPlugin
|
|||
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
|
||||
|
|
|
@ -121,10 +121,14 @@ namespace OpenSim.Region.Physics.POSPlugin
|
|||
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
|
||||
|
|
|
@ -343,10 +343,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin
|
|||
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
|
||||
|
@ -679,10 +683,14 @@ namespace OpenSim.Region.Physics.PhysXPlugin
|
|||
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
|
||||
|
|
|
@ -5170,7 +5170,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
{
|
||||
if (m_host.ParentGroup.RootPart != null)
|
||||
{
|
||||
m_host.ParentGroup.RootPart.SetVehicleFloatParam(value);
|
||||
m_host.ParentGroup.RootPart.SetVehicleFloatParam(param, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue