From Second Life Wiki
Revision as of 23:52, 30 May 2023 by Gwyneth Llewelyn (talk | contribs) (Replaced <source> with <syntaxhighlight>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Function: llSetForce( vector force, integer local );

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

• vector force directional force
• integer local boolean, if TRUE force is treated as a local directional vector, if FALSE force is treated as a region directional vector

Continuous force. llApplyImpulse has instantaneous push.


  • Only works in physics-enabled objects.Only works on physical objects and attachments (non-physical as well as physical). Used on an attachment, it will apply the force to the avatar.
All Issues ~ Search JIRA for related Bugs


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

See Also


•  llSetForceAndTorque
•  llSetTorque
•  llApplyImpulse Instantaneous force

Deep Notes

Search JIRA for related Issues


function void llSetForce( vector force, integer local );