# llGetPhysicsMaterial

*LSL function*

```lsl
list list llGetPhysicsMaterial();
```

- Returns: `list`
- Energy: 10

Used to get the physical characteristics of an object.

Returns a [list](https://wiki.secondlife.com/wiki/list) in the form `[ float gravity_multiplier, float restitution, float friction, float density ]`

- float — gravity_multiplier — range \[-1.0, +28.0\], default: 1.0
- float — restitution — range \[0.0, 1.0\], default: \[0.3, 0.9\]
- float — friction — range \[0.0, 255.0\], default: \[0.2, 0.9\]
- float — density — range \[1.0, 22587.0\] [kg](/functions/llGetMassMKS/)/m^3, default: 1000.0

<table>
</table>

```lsl title="How to use" frame="terminal"
list result = llGetPhysicsMaterial();
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    touch_start(integer total_number)
    {
        list params = llGetPhysicsMaterial();
        llOwnerSay(
            "\nGravity multiplier: " + (string)llList2Float(params, 0) +
            "\nRestitution: " + (string)llList2Float(params, 1) +
            "\nFriction: " + (string)llList2Float(params, 2) +
            "\nDensity: " + (string)llList2Float(params, 3) + "kg/m^3"
        );
    }
}
```

</details>

## Tests

- [Physics Material Settings test](https://wiki.secondlife.com/wiki/Physics_Material_Settings_test)

## History

Date of Release [23/09/2011](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/11#11-09-23-241511)

## See also

### Functions

- [llSetPhysicsMaterial](/functions/llSetPhysicsMaterial/)

---

*Source: [LlGetPhysicsMaterial](https://wiki.secondlife.com/wiki/LlGetPhysicsMaterial) on the Second Life Wiki. Content from the Second Life Wiki articles LlGetPhysicsMaterial (revision 1217246, 2024-09-08) and Template:LSL Function/physics materials (revision 1171967, 2012-08-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetPhysicsMaterial/
