Difference between revisions of "LlApplyRotationalImpulse"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Pointing out, that function does not work on attachments.)
 
Line 9: Line 9:
|return_text
|return_text
|spec
|spec
|caveats
|caveats=
* It does '''not''' work on attachments.
|constants
|constants
|examples=<source lang="lsl2">
|examples=<source lang="lsl2">

Latest revision as of 11:54, 30 March 2018

Summary

Function: llApplyRotationalImpulse( vector force, integer local );

Applies rotational impulse to object.

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

Caveats

All Issues ~ Search JIRA for related Bugs

Examples

default
{
    state_entry()
    {
        llApplyRotationalImpulse(<0,5,0>,TRUE); //Rotates object.
    }
}

See Also

Functions

•  llApplyImpulse
•  llSetAngularVelocity

Deep Notes

Search JIRA for related Issues

Signature

function void llApplyRotationalImpulse( vector force, integer local );