llApplyRotationalImpulse
void llApplyRotationalImpulse(vector Force, integer Local)Applies rotational impulse to the object.
If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.
This function only works on physical objects.
Parameters
-
Force(vector) - Amount of impulse force to apply.
-
Local(integer) - Boolean, if TRUE, uses local axis, if FALSE, uses region axis.
default{ state_entry() { llApplyRotationalImpulse(<0,5,0>,TRUE); //Rotates object. }}Caveats
Section titled “Caveats”- It does not work on attachments.