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.
Examples
Section titled “Examples”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.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llSetVelocity