Difference between revisions of "LlSetForceAndTorque"

From Second Life Wiki
Jump to: navigation, search
m
m (Added an example)
Line 11: Line 11:
 
|caveats
 
|caveats
 
|constants
 
|constants
|examples
+
|examples=
 +
<lsl>
 +
default
 +
{
 +
    touch_start(integer total_number)
 +
    {
 +
        llSetForceAndTorque( <0.0,0.0,5.0>, <1.0,0.0,0.0>, FALSE );
 +
    }
 +
}
 +
</lsl>
 
|helpers
 
|helpers
 
|also_functions={{LSL DefineRow||[[llSetForce]]|}}
 
|also_functions={{LSL DefineRow||[[llSetForce]]|}}

Revision as of 15:24, 26 July 2010

Summary

Function: llSetForceAndTorque( vector force, vector torque, integer local );

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

• vector force directional force
• vector torque torque force
• integer local boolean, if TRUE uses local axis, if FALSE uses region axis.

Examples

<lsl> default {

   touch_start(integer total_number)
   {
       llSetForceAndTorque( <0.0,0.0,5.0>, <1.0,0.0,0.0>, FALSE );
   }

}

</lsl>

See Also

Functions

•  llSetForce
•  llSetTorque

Deep Notes

Search JIRA for related Issues

Signature

function void llSetForceAndTorque( vector force, vector torque, integer local );