Difference between revisions of "LlGetForce"
Jump to navigation
Jump to search
Rolig Loon (talk | contribs) |
(Undo revision 1190204 by Rolig Loon (Talk)) |
||
Line 44: | Line 44: | ||
|cat1=Physics | |cat1=Physics | ||
|cat2=Movement | |cat2=Movement | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 13:29, 22 August 2014
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetForce( );65 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the force (if the script is physical)
Caveats
Examples
<lsl> default {
state_entry() { llSetForce(<0,llFrand(10),0>,FALSE); //Sets the force in a frand of 10 in Y axis. llSetTimerEvent(1); //Resets the force every second. } touch_start(integer total_num) { llOwnerSay((string)llGetForce()); //Says the force. } timer() { llResetScript(); }
}
</lsl>See Also
Functions
• | llGetOmega | |||
• | llGetVel | |||
• | llGetTorque | |||
• | llGetMass | |||
• | llGetAccel | |||
• | llSetForce | |||
• | llSetTorque | |||
• | llSetForceAndTorque |