aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-10 05:56:58 +0000
committerTeravus Ovares2008-03-10 05:56:58 +0000
commitd0123a796b0066a50914c6fae5d86550dcf58636 (patch)
tree5e7a5091afffc219c96c7649c4b2535215faf8e5 /OpenSim/Region/ScriptEngine
parent* Added ODEPlugin Support for llSetBuoyancy. Set Buoyancy to 1 for space prim. (diff)
downloadopensim-SC_OLD-d0123a796b0066a50914c6fae5d86550dcf58636.zip
opensim-SC_OLD-d0123a796b0066a50914c6fae5d86550dcf58636.tar.gz
opensim-SC_OLD-d0123a796b0066a50914c6fae5d86550dcf58636.tar.bz2
opensim-SC_OLD-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')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs5
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs14
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs1
3 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index 79a106b..05a1a1d 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -1897,6 +1897,11 @@ namespace OpenSim.Region.ScriptEngine.Common
1897 m_LSL_Functions.osSetParcelMediaURL(url); 1897 m_LSL_Functions.osSetParcelMediaURL(url);
1898 } 1898 }
1899 1899
1900 public void osSetPrimFloatOnWater(int floatYN)
1901 {
1902 m_LSL_Functions.osSetPrimFloatOnWater(floatYN);
1903 }
1904
1900 public double llList2Float(LSL_Types.list src, int index) 1905 public double llList2Float(LSL_Types.list src, int index)
1901 { 1906 {
1902 return m_LSL_Functions.llList2Float(src, index); 1907 return m_LSL_Functions.llList2Float(src, index);
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);
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
index d60d70e..381ca62 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs
@@ -648,6 +648,7 @@ namespace OpenSim.Region.ScriptEngine.Common
648 void osRegionNotice(string msg); 648 void osRegionNotice(string msg);
649 bool osConsoleCommand(string Command); 649 bool osConsoleCommand(string Command);
650 void osSetParcelMediaURL(string url); 650 void osSetParcelMediaURL(string url);
651 void osSetPrimFloatOnWater(int floatYN);
651 652
652 } 653 }
653} 654}