* Adds llMoveToTarget and llStopMoveToTarget support to the ODEPlugin.

* It doesn't generate at_target events, because they don't exist yet in the script engine.
* The Tau is different, however, compatible with scripts I tested.
* Not perfect...  but pretty good.
This commit is contained in:
Teravus Ovares
2008-03-25 03:36:31 +00:00
parent a2daccad5e
commit a21112ccee
10 changed files with 193 additions and 6 deletions

View File

@@ -586,6 +586,24 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void MoveToTarget(LLVector3 target, float tau)
{
if (tau > 0)
{
m_parentGroup.moveToTarget(target, tau);
}
else
{
StopMoveToTarget();
}
}
public void StopMoveToTarget()
{
m_parentGroup.stopMoveToTarget();
}
public void TriggerScriptChangedEvent(Changed val)
{
if (m_parentGroup != null)