llApplyRotationalImpulse
function
Function syntax
llApplyRotationalImpulse(vector force,// Rotational impulse vector to apply.integer is_local// Boolean. IfTRUE, the force is treated as a local directional vector; ifFALSE, it is treated as a global region vector.
);- Energy
- 10
Applies a rotational impulse (force) to a physical object. If local is TRUE, the rotational impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.
Applies rotational impulse to object.
llApplyRotationalImpulse(ZERO_VECTOR, 0);Caveats
Section titled “Caveats”- It does not work on attachments.
Examples
Section titled “Examples”Example 1
default{ state_entry() { llApplyRotationalImpulse(<0,5,0>,TRUE); //Rotates object. }}See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.