* Added ODEPlugin Support for llSetBuoyancy. Set Buoyancy to 1 for space prim.

* Added WaterLevel support to the ODEPlugin.   More on this later.
This commit is contained in:
Teravus Ovares
2008-03-10 05:23:43 +00:00
parent 8bba8e232c
commit 8bea3dbdb9
13 changed files with 259 additions and 12 deletions

View File

@@ -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)

View File

@@ -648,5 +648,6 @@ namespace OpenSim.Region.ScriptEngine.Common
void osRegionNotice(string msg);
bool osConsoleCommand(string Command);
void osSetParcelMediaURL(string url);
}
}