Difference between revisions of "LlLookAt"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|func_footnote=To stop the object from maintaining the '''target''' positions use {{LSLG|llStopLookAt}}<br/>
|func_footnote=To stop the object from maintaining the '''target''' positions use {{LSLG|llStopLookAt}}<br/>
To change the position in the same manner use {{LSLG|llMoveToTarget}}.
To change the position in the same manner use {{LSLG|llMoveToTarget}}.
|func_desc=Cause object name to point its forward axis towards '''target'''
|func_desc=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.
|return_text
|return_text
|spec
|spec
|caveats
|caveats=If the object is physical and not symmetrical it may cause a recoil effect.
|constants
|constants
|examples
|examples

Revision as of 21:44, 4 October 2007

Summary

Function: llLookAt( vector target, float strength, float damping );
0.0 Forced Delay
10.0 Energy

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.

Examples

See Also

Functions

Deep Notes

Signature

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