aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorUbitUmarov2012-07-06 17:13:11 +0100
committerUbitUmarov2012-07-06 17:13:11 +0100
commitce7864632bf239a44321cc5806a95a78e0f259ed (patch)
tree6fb42b3d2fed041133ee5bdcc11ba92d65330f4a /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentChanged GetTexture error code RequestedRangeNotSatisfiable to NotFound, since... (diff)
downloadopensim-SC-ce7864632bf239a44321cc5806a95a78e0f259ed.zip
opensim-SC-ce7864632bf239a44321cc5806a95a78e0f259ed.tar.gz
opensim-SC-ce7864632bf239a44321cc5806a95a78e0f259ed.tar.bz2
opensim-SC-ce7864632bf239a44321cc5806a95a78e0f259ed.tar.xz
added llSetVelocity. will refuse to work on vehicles and on attachments ( this last may need fix) added also some code for llSetAngularVelocity but not working still
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 5808594..0ee2748 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2538,6 +2538,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2538 m_host.ApplyImpulse(v, local != 0); 2538 m_host.ApplyImpulse(v, local != 0);
2539 } 2539 }
2540 2540
2541
2541 public void llApplyRotationalImpulse(LSL_Vector force, int local) 2542 public void llApplyRotationalImpulse(LSL_Vector force, int local)
2542 { 2543 {
2543 m_host.AddScriptLPS(1); 2544 m_host.AddScriptLPS(1);
@@ -2564,6 +2565,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2564 llSetTorque(torque, local); 2565 llSetTorque(torque, local);
2565 } 2566 }
2566 2567
2568 public void llSetVelocity(LSL_Vector vel, int local)
2569 {
2570 m_host.AddScriptLPS(1);
2571 m_host.SetVelocity(new Vector3((float)vel.x, (float)vel.y, (float)vel.z), local != 0);
2572 }
2573
2567 public LSL_Vector llGetVel() 2574 public LSL_Vector llGetVel()
2568 { 2575 {
2569 m_host.AddScriptLPS(1); 2576 m_host.AddScriptLPS(1);
@@ -2590,10 +2597,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2590 return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z); 2597 return new LSL_Vector(m_host.Acceleration.X, m_host.Acceleration.Y, m_host.Acceleration.Z);
2591 } 2598 }
2592 2599
2600
2601 public void llSetAngularVelocity(LSL_Vector avel, int local)
2602 {
2603 m_host.AddScriptLPS(1);
2604 // Still not done !!!!
2605// m_host.SetAngularVelocity(new Vector3((float)avel.x, (float)avel.y, (float)avel.z), local != 0);
2606 }
2607
2593 public LSL_Vector llGetOmega() 2608 public LSL_Vector llGetOmega()
2594 { 2609 {
2595 m_host.AddScriptLPS(1); 2610 m_host.AddScriptLPS(1);
2596 return new LSL_Vector(m_host.AngularVelocity.X, m_host.AngularVelocity.Y, m_host.AngularVelocity.Z); 2611 Vector3 avel = m_host.AngularVelocity;
2612 return new LSL_Vector(avel.X, avel.Y, avel.Z);
2597 } 2613 }
2598 2614
2599 public LSL_Float llGetTimeOfDay() 2615 public LSL_Float llGetTimeOfDay()