diff options
author | UbitUmarov | 2015-11-29 18:27:34 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-29 18:27:34 +0000 |
commit | 25f13f7c0130d283650e8fb088f2360cd4604835 (patch) | |
tree | 779849ac9898157402a23ced754d2e2b7e5dc03f /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | change llLookAt math to master cleaner solution, assuming lAxis2rot does work (diff) | |
download | opensim-SC_OLD-25f13f7c0130d283650e8fb088f2360cd4604835.zip opensim-SC_OLD-25f13f7c0130d283650e8fb088f2360cd4604835.tar.gz opensim-SC_OLD-25f13f7c0130d283650e8fb088f2360cd4604835.tar.bz2 opensim-SC_OLD-25f13f7c0130d283650e8fb088f2360cd4604835.tar.xz |
fix llLookAt in non-physical case
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 38cbdbc..8d59c2d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3575,13 +3575,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3575 | if (strength <= 0.0 || damping <= 0.0) | 3575 | if (strength <= 0.0 || damping <= 0.0) |
3576 | return; | 3576 | return; |
3577 | 3577 | ||
3578 | llSetRot(rot); | 3578 | llSetLocalRot(rot); |
3579 | } | 3579 | } |
3580 | else | 3580 | else |
3581 | { | 3581 | { |
3582 | if (strength == 0) | 3582 | if (strength == 0) |
3583 | { | 3583 | { |
3584 | llSetRot(rot); | 3584 | llSetLocalRot(rot); |
3585 | return; | 3585 | return; |
3586 | } | 3586 | } |
3587 | 3587 | ||