LlSetForce

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Function: llSetForce( vector force, integer local );
64 Function ID
0.0 Delay
10.0 Energy

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.

Continuous force. llApplyImpulse has instantaneous push.

Caveats

Only works on physical objects.

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
•  llApplyImpulse Instantaneous force
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools