# llSetAngularVelocity

*LSL function*

```lsl
void llSetAngularVelocity(vector initial_omega, integer is_local);
```

- `vector initial_omega`: Angular velocity vector to apply (in radians per second).
- `integer is_local`: Boolean. If TRUE, initial_omega is treated as a local vector; if FALSE, as a global region vector.

- Energy: 10

Sets the angular velocity of a physical object to initial_omega (mass-independent). If local is TRUE, applied in local coordinates; if FALSE, applied in global coordinates. Has no effect on non-physical objects.

Applies rotational velocity to object.

It does the same job as [llApplyRotationalImpulse](/functions/llApplyRotationalImpulse/) but doesn't depend of the mass of object .

```lsl title="How to use" frame="terminal"
llSetAngularVelocity(ZERO_VECTOR, 0);
```

## Examples

Instances :

one regular cube with mass M , and gravity 0 ( to disable the gravity) ; the object is homogenous and with only one prim so, its center of mass is its center of the object and its physical axis of rotation are its local axis :

&lt;ul>

&lt;li>LlSetAngularVelocity(`<0,0,1>`, [TRUE](/constants/TRUE/) ) => starts to rotate around its Z local axis with a start value of omega = 1 radian /second , and slows down over time until it won't rotate &lt;/li>

&lt;li>`llApplyRotationalImpulse(<0,0,1>, TRUE )` => starts to rotate around its Z local axis with a start value of omega = 1/M radian /second , and slows down over time until it won't rotate&lt;/li>

&lt;li>`llTargetOmega(<0.0,0.0,1.0>, 1.0, 1.0)` => if the object is physical , starts to rotate around its Z local axis with a start value of omega = 1 radian / second . It won t slow down over time &lt;/li>

&lt;/ul>

## History

Date of Release [10/08/2011](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/11#11-08-10-238207)

## See also

### Functions

- [llApplyRotationalImpulse](/functions/llApplyRotationalImpulse/)
- [llSetVelocity](/functions/llSetVelocity/)

---

*Source: [LlSetAngularVelocity](https://wiki.secondlife.com/wiki/LlSetAngularVelocity) on the Second Life Wiki. Content from the Second Life Wiki articles LlSetAngularVelocity (revision 1185539, 2013-12-23), Template:LSL Function/force (revision 1168796, 2012-06-11) and Template:LSL Function/physical (revision 1168828, 2012-06-11), CC BY-SA 3.0.*

---

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