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/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 8 +++++++- .../Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 17fd862..010961e 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -1499,7 +1499,13 @@ namespace OpenSim.Region.ScriptEngine.Common public void llSetBuoyancy(double buoyancy) { m_host.AddScriptLPS(1); - NotImplemented("llSetBuoyancy"); + if (m_host.ParentGroup != null) + { + if (m_host.ParentGroup.RootPart != null) + { + m_host.ParentGroup.RootPart.SetBuoyancy((float)buoyancy); + } + } } public void llSetHoverHeight(double height, int water, double tau) diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs index c6d683c..d60d70e 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs @@ -648,5 +648,6 @@ namespace OpenSim.Region.ScriptEngine.Common void osRegionNotice(string msg); bool osConsoleCommand(string Command); void osSetParcelMediaURL(string url); + } } -- cgit v1.1