Skip to content

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=TRUE for local directional vectors (relative to object rotation)
  • Use local=FALSE for regional directional vectors (absolute directions)