aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2017-10-01 18:05:10 +0100
committerUbitUmarov2017-10-01 18:05:10 +0100
commitb1814d34922a7a10a9593cc1f4505cf721ac62b8 (patch)
tree2a548b1665197b2096af3597627a0ae261f1318c /OpenSim/Region
parentreplace libomv saving a few op on vector * quaternion (diff)
parentbug fix: add missing stub for osSetInertia (diff)
downloadopensim-SC-b1814d34922a7a10a9593cc1f4505cf721ac62b8.zip
opensim-SC-b1814d34922a7a10a9593cc1f4505cf721ac62b8.tar.gz
opensim-SC-b1814d34922a7a10a9593cc1f4505cf721ac62b8.tar.bz2
opensim-SC-b1814d34922a7a10a9593cc1f4505cf721ac62b8.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs5
2 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index 8f863af..429860b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -498,6 +498,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
498 498
499 LSL_List osGetInertiaData(); 499 LSL_List osGetInertiaData();
500 void osClearInertia(); 500 void osClearInertia();
501 void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot);
501 void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot); 502 void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot);
502 void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass); 503 void osSetInertiaAsSphere(LSL_Float mass, LSL_Float radius, vector centerOfMass);
503 void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot); 504 void osSetInertiaAsCylinder(LSL_Float mass, LSL_Float radius, LSL_Float lenght, vector centerOfMass,rotation lslrot);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index 42e7bfb..23ea215 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -1156,6 +1156,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1156 return m_OSSL_Functions.osGetInertiaData(); 1156 return m_OSSL_Functions.osGetInertiaData();
1157 } 1157 }
1158 1158
1159 public void osSetInertia(LSL_Float mass, vector centerOfMass, vector principalInertiaScaled, rotation rot)
1160 {
1161 m_OSSL_Functions.osSetInertia(mass, centerOfMass, principalInertiaScaled, rot);
1162 }
1163
1159 public void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot) 1164 public void osSetInertiaAsBox(LSL_Float mass, vector boxSize, vector centerOfMass, rotation rot)
1160 { 1165 {
1161 m_OSSL_Functions.osSetInertiaAsBox(mass, boxSize, centerOfMass, rot); 1166 m_OSSL_Functions.osSetInertiaAsBox(mass, boxSize, centerOfMass, rot);