From 8bea3dbdb91dfb465338572e3dfb40a5adfb9bab Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 10 Mar 2008 05:23:43 +0000 Subject: * Added ODEPlugin Support for llSetBuoyancy. Set Buoyancy to 1 for space prim. * Added WaterLevel support to the ODEPlugin. More on this later. --- OpenSim/Region/Physics/Manager/PhysicsActor.cs | 6 ++++++ OpenSim/Region/Physics/Manager/PhysicsScene.cs | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'OpenSim/Region/Physics/Manager') diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index e31a08d..82b7450 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs @@ -208,6 +208,8 @@ namespace OpenSim.Region.Physics.Manager public abstract bool Kinematic { get; set; } + public abstract float Buoyancy { get; set; } + public abstract void AddForce(PhysicsVector force); public abstract void SetMomentum(PhysicsVector momentum); @@ -249,6 +251,10 @@ namespace OpenSim.Region.Physics.Manager set { return; } } + public override float Buoyancy { + get { return 0f; } + set { return; } + } public override bool CollidingGround { diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs index 996aed6..a51b2df 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs @@ -79,6 +79,8 @@ namespace OpenSim.Region.Physics.Manager public abstract void SetTerrain(float[] heightMap); + public abstract void SetWaterLevel(float baseheight); + public abstract void DeleteTerrain(); public abstract void Dispose(); @@ -108,6 +110,10 @@ namespace OpenSim.Region.Physics.Manager public override void RemovePrim(PhysicsActor prim) { } + public override void SetWaterLevel(float baseheight) + { + + } /* public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size, Quaternion rotation) -- cgit v1.1