llLookAt

From Second Life Wiki
Revision as of 22:44, 4 October 2007 by Ralph Doctorow (talk | contribs)
Jump to navigation Jump to search

Summary

Function: llLookAt( vector target, float strength, float damping );

Cause object name to point its up axis (positive z) towards target

If the object isn't physical, the settings don't seem to have any effect except the force must be > 0. For physical objects, the strength seems to be the damping strength, not the rotating strength, so the weaker it is the faster the rotation happens. The tau controls how fast the rotation damps out. Low values relative to the strength make it bouncy, high values more viscous motion.

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

To stop the object from maintaining the target positions use llStopLookAt
To change the position in the same manner use llMoveToTarget.

Caveats

If the object is physical and not symmetrical it may cause a recoil effect.

All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

Deep Notes

Search JIRA for related Issues

Signature

function void llLookAt( vector target, float strength, float damping );