Skip to content
lsl.devlsl.devLSL Dev

llApplyRotationalImpulse

function
Function syntax
llApplyRotationalImpulse(
  1. vector force,// Rotational impulse vector to apply.
  2. integer is_local// Boolean. If TRUE, the force is treated as a local directional vector; if FALSE, 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.

How to use
llApplyRotationalImpulse(ZERO_VECTOR, 0);
  • It does not work on attachments.
Example 1
default
{
state_entry()
{
llApplyRotationalImpulse(<0,5,0>,TRUE); //Rotates object.
}
}
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.