llSetVelocity
void llSetVelocity(vector Velocity, integer Local)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(integer) - If TRUE, the Velocity is treated as a local directional vector instead of a regional directional vector.
- Provides instantaneous velocity not dependent on object energy or mass
- Only works with physics-enabled objects
- Use
local=TRUEfor local directional vectors (relative to object rotation) - Use
local=FALSEfor regional directional vectors (absolute directions)