From 3397236c6c759178bfb77e41ba761fca162a7b5f Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 28 Sep 2008 18:36:30 +0000 Subject: Plumb the connection through from llSetVehicleFloatParam to the various physics engines. No connection to the underlying physics simulator yet, just plumbing through the various classes. --- .../Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs | 6 ++++++ OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs | 6 ++++++ OpenSim/Region/Physics/Manager/PhysicsActor.cs | 11 +++++++++-- OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 6 ++++++ OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 6 ++++++ OpenSim/Region/Physics/POSPlugin/POSCharacter.cs | 6 ++++++ OpenSim/Region/Physics/POSPlugin/POSPrim.cs | 6 ++++++ OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs | 12 ++++++++++++ 8 files changed, 57 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs index e38a12b..23b7518 100644 --- a/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs +++ b/OpenSim/Region/Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs @@ -335,6 +335,12 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index c969f9a..39fab43 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs @@ -950,6 +950,12 @@ namespace OpenSim.Region.Physics.BulletXPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index 482b478..16825a9 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs @@ -174,6 +174,9 @@ namespace OpenSim.Region.Physics.Manager public abstract PhysicsVector Position { get; set; } public abstract float Mass { get; } public abstract PhysicsVector Force { get; set; } + + public abstract float VehicleFloatParam { get; set; } + public abstract PhysicsVector GeometricCenter { get; } public abstract PhysicsVector CenterOfMass { get; } public abstract PhysicsVector Velocity { get; set; } @@ -195,8 +198,6 @@ namespace OpenSim.Region.Physics.Manager public abstract PhysicsVector PIDTarget { set;} public abstract bool PIDActive { set;} public abstract float PIDTau { set; } - - public abstract void AddForce(PhysicsVector force, bool pushforce); public abstract void SetMomentum(PhysicsVector momentum); public abstract void SubscribeEvents(int ms); @@ -278,6 +279,12 @@ namespace OpenSim.Region.Physics.Manager set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 38d4060..6c1c876 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -537,6 +537,12 @@ namespace OpenSim.Region.Physics.OdePlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 2e75486..a6116de 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -1876,6 +1876,12 @@ namespace OpenSim.Region.Physics.OdePlugin set { m_force = value; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs b/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs index 400280f..6ab5d88 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSCharacter.cs @@ -159,6 +159,12 @@ namespace OpenSim.Region.Physics.POSPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs index 69cd19c..c5cb91a 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs @@ -121,6 +121,12 @@ namespace OpenSim.Region.Physics.POSPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs index 37e2a2f..4ce2130 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs +++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs @@ -343,6 +343,12 @@ namespace OpenSim.Region.Physics.PhysXPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } @@ -673,6 +679,12 @@ namespace OpenSim.Region.Physics.PhysXPlugin set { return; } } + public override float VehicleFloatParam + { + get { return 0f; } + set { return; } + } + public override PhysicsVector CenterOfMass { get { return PhysicsVector.Zero; } -- cgit v1.1