function
Function syntax
llSetTorque(vector torque,// Torque rotational force vector.integer is_local// Boolean. IfTRUE, torque is treated as a local vector; ifFALSE, 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)
llSetTorque(ZERO_VECTOR, 0);Examples
Section titled “Examples”Example 1
default{ touch_start(integer total_number) { llSetTorque(<0,10,0>,1); //X Y Z Local }}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.