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

@@ -942,6 +942,22 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void SetFloatOnWater(int floatYN)
{
if (PhysActor != null)
{
if (floatYN == 1)
{
PhysActor.FloatOnWater = true;
}
else
{
PhysActor.FloatOnWater = false;
}
}
}
public LLVector3 GetSitTargetPositionLL()
{
return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y, m_sitTargetPosition.z);