llLookAt(vectortarget, float strength, floatdamping)

 

 

Causes the object to point the up (Z) axis toward target. Good strength values are around half the mass of the object and good damping values are less than 1/10th of the strength. Asymmetrical shapes require smaller damping. Calling llStopLookAt cancels the function.

 

This function works for both physical and non-physical objects.

 

Unlike llSetRot this function will rotate the object around its center of gravity.

 

Note: within the LSL editor, the tooltip for llLookAt reads "llLookAt(vector target, F32 strength, F32 damping)". F32 refers to a 32-bitfloat. In LSL, all floats are 32-bit.

 

 

Compare with llRotLookAt.


Page Information

  • 4 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts