LlSetForce

From Second Life Wiki
Revision as of 12:26, 28 November 2007 by Xaviar Czervik (Talk | contribs)

Jump to: navigation, search

Summary

Function: llSetForce( vector force, integer local );

Applies force to the object (if the script is physical)

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

Caveats

Only works on physical objects.

All Issues ~ Search JIRA for related Bugs

Examples

//A simple rocket script. Launches object up when touched. 
//Sit on it for an interesting ride!
default {
     touch_start(integer i) {
          llSetForce(<0,0,0x7FFFFFFF>, 0);  //FLY!
     }
}

See Also

Functions

•  llSetForceAndTorque
•  llSetTorque

Deep Notes

Search JIRA for related Issues

Signature

function void llSetForce( vector force, integer local );