Difference between revisions of "LlApplyRotationalImpulse"

From Second Life Wiki
Jump to navigation Jump to search
m
m (didn't think LSLG was used anywhere anymore!)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-2={{LSL_Function/force|force|local=local}}{{LSL_Function/physical}}
|func_id=73|func_sleep=0.0|func_energy=10.0
|func_id=73|func_sleep=0.0|func_energy=10.0
|func=llApplyRotationalImpulse
|func=llApplyRotationalImpulse
|p1_type=vector|p1_name=force
|p1_type=vector|p1_name=force
|p2_type=integer|p2_name=local|p2_desc=boolean, if {{LSLG|TRUE}} uses [[Viewer coordinate frames#Local|local]] axis, if {{LSLG|FALSE}} uses [[Viewer coordinate frames#Region|region]] axis.
|p2_type=integer|p2_name=local|p2_desc=boolean, if [[TRUE]] uses [[Viewer coordinate frames#Local|local]] axis, if [[FALSE]] uses [[Viewer coordinate frames#Region|region]] axis.
||p2_hover=boolean, if TRUE uses local axis, if FALSE uses region axis.
||p2_hover=boolean, if TRUE uses local axis, if FALSE uses region axis.
|func_desc=Applies rotational impulse to object.
|func_desc=Applies rotational impulse to object.
Line 9: Line 10:
|return_text
|return_text
|spec
|spec
|caveats=Object must be physical.
|caveats
|constants
|constants
|examples=<lsl>
|examples=<lsl>

Revision as of 11:48, 10 June 2012

Summary

Function: llApplyRotationalImpulse( vector force, integer local );
0.0 Forced Delay
10.0 Energy

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 vectorboolean, if TRUE uses local axis, if FALSE uses region axis.

Caveats

Examples

<lsl> default {

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

}

</lsl>

See Also

Functions

Deep Notes

Signature

function void llApplyRotationalImpulse( vector force, integer local );