# PRIM_PHYSICS

*LSL constant*

```lsl
integer PRIM_PHYSICS = 3;
```

Prim parameter [PRIM_PHYSICS, integer boolean] to get or set whether the object responds to Second Life physics.

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the object's [physics](/constants/STATUS_PHYSICS/) [status](https://wiki.secondlife.com/wiki/Category:LSL_Status). When enabled the object responds to SL physics.

## Caveats

- calls to set `PRIM_PHYSICS` in attachments fail silently

## Examples

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

```lsl collapse={10-19}
default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_PHYSICS, TRUE]); // makes the object physical...

        integer isPhysical = llList2Integer(llGetPrimitiveParams([PRIM_PHYSICS]), 0);

        if( isPhysical == 1 )
        {
            llSetText("Object is Physical", <1, 1, 1>, 1.0);
        }

        else
        {
            llSetText("Object is non-Physical", <1, 1, 1>, 1.0);
        }
    }
}
```

</details>

## See also

### Constants

- [STATUS_PHYSICS](/constants/STATUS_PHYSICS/)

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llSetStatus](/functions/llSetStatus/)
- [llGetStatus](/functions/llGetStatus/)

---

*Source: [PRIM PHYSICS](https://wiki.secondlife.com/wiki/PRIM_PHYSICS) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM PHYSICS (revision 1194687, 2015-01-23) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_PHYSICS/
