# PRIM_ROTATION

*LSL constant*

```lsl
integer PRIM_ROTATION = 8;
```

Prim parameter [PRIM_ROTATION, rotation global_rot] to get or set the global rotation of the prim (equivalent to llGetRot/llSetRot; note that setting this on child prims may be broken).

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

`PRIM_ROTATION` is used to get or set the prim's rotation.

## Examples

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

```lsl
default
{
    state_entry()
    {
        /* This is rotates only once and just gradually that once */
        vector rotationAngle = <2.3, 5.5, 9.7>;
        rotation rot = llEuler2Rot( rotationAngle );
        llSetLinkPrimitiveParams(2, [ PRIM_ROTATION, rot ]);
    }
}
```

</details>

## See also

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llGetLinkPrimitiveParams](/functions/llGetLinkPrimitiveParams/)
- [llGetRot](/functions/llGetRot/)
- [llSetRot](/functions/llSetRot/)
- [llSetLocalRot](/functions/llSetLocalRot/)
- [llGetLocalRot](/functions/llGetLocalRot/)
- [llGetRootRotation](/functions/llGetRootRotation/)
- [llGetObjectDetails](/functions/llGetObjectDetails/)

---

*Source: [PRIM ROTATION](https://wiki.secondlife.com/wiki/PRIM_ROTATION) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM ROTATION (revision 1194690, 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_ROTATION/
