new b5.A_CamFollow(source, target, speed, distance){b5.A_CamFollow}
actions/generic/camera.js, line 204
Action that causes scene camera to follow 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.Scene |
Path to or instance of scene that contains camera 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) |
Returns:
Type | Description |
---|---|
b5.A_CamFollow | The created action |