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

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