aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2010-08-02 00:54:58 +0200
committerMelanie Thielker2010-08-02 00:54:58 +0200
commit16e90809a92095f1d0f3a54ca3a7def6dd5ae3b1 (patch)
tree69950d9e0ed8853f18a9d6ab13ea41eb51377525 /OpenSim
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC_OLD-16e90809a92095f1d0f3a54ca3a7def6dd5ae3b1.zip
opensim-SC_OLD-16e90809a92095f1d0f3a54ca3a7def6dd5ae3b1.tar.gz
opensim-SC_OLD-16e90809a92095f1d0f3a54ca3a7def6dd5ae3b1.tar.bz2
opensim-SC_OLD-16e90809a92095f1d0f3a54ca3a7def6dd5ae3b1.tar.xz
Remove the (wrong) implementation if llPointAt. It never worked on the LL
grid and is officially deprecated. There is no way to rotate an avatar programmatically.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index c08c246..52d3285 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3517,17 +3517,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3517 public void llPointAt(LSL_Vector pos) 3517 public void llPointAt(LSL_Vector pos)
3518 { 3518 {
3519 m_host.AddScriptLPS(1); 3519 m_host.AddScriptLPS(1);
3520 ScenePresence Owner = World.GetScenePresence(m_host.UUID);
3521 LSL_Rotation rot = llEuler2Rot(pos);
3522 Owner.PreviousRotation = Owner.Rotation;
3523 Owner.Rotation = (new Quaternion((float)rot.x,(float)rot.y,(float)rot.z,(float)rot.s));
3524 } 3520 }
3525 3521
3526 public void llStopPointAt() 3522 public void llStopPointAt()
3527 { 3523 {
3528 m_host.AddScriptLPS(1); 3524 m_host.AddScriptLPS(1);
3529 ScenePresence Owner = m_host.ParentGroup.Scene.GetScenePresence(m_host.OwnerID);
3530 Owner.Rotation = Owner.PreviousRotation;
3531 } 3525 }
3532 3526
3533 public void llTargetOmega(LSL_Vector axis, double spinrate, double gain) 3527 public void llTargetOmega(LSL_Vector axis, double spinrate, double gain)