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/Environment/Scenes/SceneObjectPart.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index b7b7883..a8f08ec 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -934,6 +934,14 @@ namespace OpenSim.Region.Environment.Scenes m_sitTargetOrientation = orientation; } + public void SetBuoyancy(float fvalue) + { + if (PhysActor != null) + { + PhysActor.Buoyancy = fvalue; + } + } + public LLVector3 GetSitTargetPositionLL() { return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y, m_sitTargetPosition.z); -- cgit v1.1