diff options
author | Melanie | 2013-05-04 00:44:47 +0200 |
---|---|---|
committer | Melanie | 2013-05-04 00:44:47 +0200 |
commit | 4904d4013803b0128c52b2f9bdd5e94972b05c2f (patch) | |
tree | 83a8c0c83b64e1b94e31f203b16724dfab3f1b54 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Fix the long standing bug of items being delivered to lost and found or trash... (diff) | |
download | opensim-SC-4904d4013803b0128c52b2f9bdd5e94972b05c2f.zip opensim-SC-4904d4013803b0128c52b2f9bdd5e94972b05c2f.tar.gz opensim-SC-4904d4013803b0128c52b2f9bdd5e94972b05c2f.tar.bz2 opensim-SC-4904d4013803b0128c52b2f9bdd5e94972b05c2f.tar.xz |
Add llGetPhysicsMaterial
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
1 files changed, 12 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 bc35272..bb89ac1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7851,6 +7851,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7851 | } | 7851 | } |
7852 | } | 7852 | } |
7853 | 7853 | ||
7854 | public LSL_List llGetPhysicsMaterial() | ||
7855 | { | ||
7856 | LSL_List result = new LSL_List(); | ||
7857 | |||
7858 | result.Add(new LSL_Float(m_host.GravityModifier)); | ||
7859 | result.Add(new LSL_Float(m_host.Restitution)); | ||
7860 | result.Add(new LSL_Float(m_host.Friction)); | ||
7861 | result.Add(new LSL_Float(m_host.Density)); | ||
7862 | |||
7863 | return result; | ||
7864 | } | ||
7865 | |||
7854 | private void SetPhysicsMaterial(SceneObjectPart part, int material_bits, | 7866 | private void SetPhysicsMaterial(SceneObjectPart part, int material_bits, |
7855 | float material_density, float material_friction, | 7867 | float material_density, float material_friction, |
7856 | float material_restitution, float material_gravity_modifier) | 7868 | float material_restitution, float material_gravity_modifier) |