diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c0b8373..34e2b4d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2382,6 +2382,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2382 | return force; | 2382 | return force; |
2383 | } | 2383 | } |
2384 | 2384 | ||
2385 | public void llSetVelocity(LSL_Vector velocity, int local) | ||
2386 | { | ||
2387 | m_host.AddScriptLPS(1); | ||
2388 | |||
2389 | if (!m_host.ParentGroup.IsDeleted) | ||
2390 | { | ||
2391 | if (local != 0) | ||
2392 | velocity *= llGetRot(); | ||
2393 | |||
2394 | m_host.ParentGroup.RootPart.Velocity = velocity; | ||
2395 | } | ||
2396 | } | ||
2397 | |||
2398 | public void llSetAngularVelocity(LSL_Vector angularVelocity, int local) | ||
2399 | { | ||
2400 | m_host.AddScriptLPS(1); | ||
2401 | |||
2402 | if (!m_host.ParentGroup.IsDeleted) | ||
2403 | { | ||
2404 | if (local != 0) | ||
2405 | angularVelocity *= llGetRot(); | ||
2406 | |||
2407 | m_host.ParentGroup.RootPart.AngularVelocity = angularVelocity; | ||
2408 | } | ||
2409 | } | ||
2410 | |||
2385 | public LSL_Integer llTarget(LSL_Vector position, double range) | 2411 | public LSL_Integer llTarget(LSL_Vector position, double range) |
2386 | { | 2412 | { |
2387 | m_host.AddScriptLPS(1); | 2413 | m_host.AddScriptLPS(1); |