Class: A_FollowPathVel

b5. A_FollowPathVel


new b5.A_FollowPathVel(target, path, start, speed, catchup_speed, angle){b5.A_FollowPathVel}

actions/generic/movement.js, line 447

Action that causes an object to follow a path using velocity, does not exit

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

path Array.<object>

Path to follow, array of x,y values that define the path, e.g. [x1,y1,x2,y2,etc..]

start number

Distance to start along the path

speed number

Speed at which to travel down the path

catchup_speed number

Speed at which object catches up with path target modes

angle boolean

If set to true then angle will adjust to path direction

Type Description
b5.A_FollowPathVel The created action