Skip to content
lsl.devlsl.devLSL Dev

llSetTorque

function
Function syntax
llSetTorque(
  1. vector torque,// Torque rotational force vector.
  2. integer is_local// Boolean. If TRUE, torque is treated as a local vector; if FALSE, as a global region vector.
);
Energy
10

Applies a constant torque rotational force to a physical object. If local is TRUE, torque is applied in local coordinates; if FALSE, applied in global coordinates.

Sets the torque of object (if the script is physical)

How to use
llSetTorque(ZERO_VECTOR, 0);
Example 1
default
{
touch_start(integer total_number)
{
llSetTorque(<0,10,0>,1);
//X Y Z Local
}
}
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.