Class: A_SetLinearVelocity

b5. A_SetLinearVelocity


new b5.A_SetLinearVelocity(target, vx, vy, duration){b5.A_SetLinearVelocity}

actions/generic/physics.js, line 32

Action that sets the linear velocity of an actors body for a duration then exits

Created actions should be added to an actor or scenes actions list to be processed

For a complete overview of Actions see Booty5 Actions Overview

Name Type Description
target string | b5.Actor

Path to or instance of target object that will be affected

vx number

x-axis velocity

vy number

y-axis velocity

duration number

Duration of action

Type Description
b5.A_SetLinearVelocity The created action