Difference between revisions of "LlRotLookAt"

From Second Life Wiki
Jump to navigation Jump to search
m (Added to Category:LSL_Rotation (function causes the object to rotate))
m
Line 1: Line 1:
{{LSL Function/damping|damping}}{{LSL_Function
{{Issues/SVC-1903}}{{LSL Function/damping|damping}}{{LSL_Function
|func_id=127|func_sleep=0.0|func_energy=10.0
|func_id=127|func_sleep=0.0|func_energy=10.0
|func=llRotLookAt
|func=llRotLookAt
Line 16: Line 16:
|helpers
|helpers
|also_functions=
|also_functions=
*{{LSLG|llLookAt}}
{{LSL DefineRow||[[llLookAt]]}}
*{{LSLG|llStopLookAt}}
{{LSL DefineRow||[[llStopLookAt]]}}
|also_events
|also_events
|also_tests
|also_tests

Revision as of 05:29, 22 June 2009

Summary

Function: llRotLookAt( rotation target, float strength, float damping );

Cause object name to point its forward axis towards target

Continues to face target untill stopped with llStopLookAt.

• rotation target
• float strength
• float damping seconds to critically damp in

To change the position in the same manner use llMoveToTarget. For physical objects a range between .2 and 1 is good for both parameters.

Examples

See Also

Functions

•  llLookAt
•  llStopLookAt

Deep Notes

All Issues

~ Search JIRA for related Issues
   llRotLookAt & llLookAt do not update the object's bounding box

Signature

function void llRotLookAt( rotation target, float strength, float damping );