Skip to content

llSetVelocity

function ll.SetVelocity(Velocity: vector, Local: number)

If the object is physics-enabled, sets the object's linear velocity to Velocity.

If Local==TRUE, Velocity is treated as a local directional vector; otherwise, Velocity is treated as a global directional vector.

Parameters
Velocity (vector)
The velocity to apply.
Local (number)
If TRUE, the Velocity is treated as a local directional vector instead of a regional directional vector.

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

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