Class: A_Follow

b5. A_Follow


new b5.A_Follow(source, target, speed, distance){b5.A_Follow}

actions/generic/movement.js, line 267

Action that follows a target, 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
source string | b5.Actor

Path to or instance of source object that will follow the target

target string | b5.Actor

Path to or instance of target object to follow

speed number

Speed at which to follow, larger values will catch up with target slower

distance number

Minimum distance allowed between source and target (squared)

Type Description
b5.A_Follow The created action