ODEPlugin

* Added osSetPrimFloatOnWater(BOOL) to make Physical prim float at the water level.   
* osSetPrimFloatOnWater(TRUE); or osSetPrimFloatOnWater(FALSE);
* By default, prim do not float at the water level.
* More work is needed on the floating, but it's a start.
This commit is contained in:
Teravus Ovares
2008-03-10 05:56:58 +00:00
parent 8bea3dbdb9
commit d0123a796b
11 changed files with 111 additions and 0 deletions

View File

@@ -1897,6 +1897,11 @@ namespace OpenSim.Region.ScriptEngine.Common
m_LSL_Functions.osSetParcelMediaURL(url);
}
public void osSetPrimFloatOnWater(int floatYN)
{
m_LSL_Functions.osSetPrimFloatOnWater(floatYN);
}
public double llList2Float(LSL_Types.list src, int index)
{
return m_LSL_Functions.llList2Float(src, index);

View File

@@ -1508,6 +1508,8 @@ namespace OpenSim.Region.ScriptEngine.Common
}
}
public void llSetHoverHeight(double height, int water, double tau)
{
m_host.AddScriptLPS(1);
@@ -4405,6 +4407,18 @@ namespace OpenSim.Region.ScriptEngine.Common
return false;
}
public void osSetPrimFloatOnWater(int floatYN)
{
m_host.AddScriptLPS(1);
if (m_host.ParentGroup != null)
{
if (m_host.ParentGroup.RootPart != null)
{
m_host.ParentGroup.RootPart.SetFloatOnWater(floatYN);
}
}
}
private void NotImplemented(string command)
{
m_host.AddScriptLPS(1);

View File

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