diff options
author | Teravus Ovares | 2008-03-10 05:56:58 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-10 05:56:58 +0000 |
commit | d0123a796b0066a50914c6fae5d86550dcf58636 (patch) | |
tree | 5e7a5091afffc219c96c7649c4b2535215faf8e5 /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | * Added ODEPlugin Support for llSetBuoyancy. Set Buoyancy to 1 for space prim. (diff) | |
download | opensim-SC-d0123a796b0066a50914c6fae5d86550dcf58636.zip opensim-SC-d0123a796b0066a50914c6fae5d86550dcf58636.tar.gz opensim-SC-d0123a796b0066a50914c6fae5d86550dcf58636.tar.bz2 opensim-SC-d0123a796b0066a50914c6fae5d86550dcf58636.tar.xz |
ODEPlugin
* Added osSetPrimFloatOnWater(BOOL) to make Physical prim float at the water level.
* osSetPrimFloatOnWater(TRUE); or osSetPrimFloatOnWater(FALSE);
* By default, prim do not float at the water level.
* More work is needed on the floating, but it's a start.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 010961e..623ac29 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -1508,6 +1508,8 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1508 | } | 1508 | } |
1509 | } | 1509 | } |
1510 | 1510 | ||
1511 | |||
1512 | |||
1511 | public void llSetHoverHeight(double height, int water, double tau) | 1513 | public void llSetHoverHeight(double height, int water, double tau) |
1512 | { | 1514 | { |
1513 | m_host.AddScriptLPS(1); | 1515 | m_host.AddScriptLPS(1); |
@@ -4405,6 +4407,18 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
4405 | return false; | 4407 | return false; |
4406 | } | 4408 | } |
4407 | 4409 | ||
4410 | public void osSetPrimFloatOnWater(int floatYN) | ||
4411 | { | ||
4412 | m_host.AddScriptLPS(1); | ||
4413 | if (m_host.ParentGroup != null) | ||
4414 | { | ||
4415 | if (m_host.ParentGroup.RootPart != null) | ||
4416 | { | ||
4417 | m_host.ParentGroup.RootPart.SetFloatOnWater(floatYN); | ||
4418 | } | ||
4419 | } | ||
4420 | } | ||
4421 | |||
4408 | private void NotImplemented(string command) | 4422 | private void NotImplemented(string command) |
4409 | { | 4423 | { |
4410 | m_host.AddScriptLPS(1); | 4424 | m_host.AddScriptLPS(1); |