diff options
author | Teravus Ovares | 2008-03-25 03:36:31 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-25 03:36:31 +0000 |
commit | a21112cceedfc93840b935feae4ad8725c4afb48 (patch) | |
tree | 43efce03cfc00168c04579e1cf3611eebde8ebde /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | Added monodevelop support to runprebuild.sh (diff) | |
download | opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.zip opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.gz opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.bz2 opensim-SC_OLD-a21112cceedfc93840b935feae4ad8725c4afb48.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 48177dc..cbefc19 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -586,6 +586,24 @@ namespace OpenSim.Region.Environment.Scenes | |||
586 | } | 586 | } |
587 | } | 587 | } |
588 | 588 | ||
589 | public void MoveToTarget(LLVector3 target, float tau) | ||
590 | { | ||
591 | if (tau > 0) | ||
592 | { | ||
593 | m_parentGroup.moveToTarget(target, tau); | ||
594 | } | ||
595 | else | ||
596 | { | ||
597 | StopMoveToTarget(); | ||
598 | } | ||
599 | |||
600 | } | ||
601 | |||
602 | public void StopMoveToTarget() | ||
603 | { | ||
604 | m_parentGroup.stopMoveToTarget(); | ||
605 | } | ||
606 | |||
589 | public void TriggerScriptChangedEvent(Changed val) | 607 | public void TriggerScriptChangedEvent(Changed val) |
590 | { | 608 | { |
591 | if (m_parentGroup != null) | 609 | if (m_parentGroup != null) |