Skip to content

llRotLookAt

function ll.RotLookAt(Rotation: quaternion, Strength: number, Damping: number)

Cause object to rotate to Rotation, with a force function defined by Strength and Damping parameters. 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.

A strength of 0.0 cancels the look at.

Parameters
Rotation (quaternion)
Strength (number)
Damping (number)

Add example usage here showing SLua/Luau syntax with ll.RotLookAt().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.