mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user