Difference between revisions of "LlRotLookAt"

From Second Life Wiki
Jump to navigation Jump to search
m (added also=llstoplookat & tweaked description)
m (Added to Category:LSL_Rotation (function causes the object to rotate))
Line 27: Line 27:
|cat1=Physics
|cat1=Physics
|cat2=Target
|cat2=Target
|cat3
|cat3=Rotation
|cat4
|cat4
}}
}}

Revision as of 22:00, 4 May 2008

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

Deep Notes

Search JIRA for related Issues

Signature

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