Class: A_ApplyForce

b5. A_ApplyForce

b5.A_ApplyForce

new b5.A_ApplyForce(target, fx, fy, dx, dy, duration){b5.A_ApplyForce}

actions/generic/physics.js, line 115

Action that applies force to an object over a period of time 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

fx number

x-axis force

fy number

y-axis force

dx number

x-axis offset to apply force

dy number

y-axis offset to apply force

duration number

Duration of action

Returns:
Type Description
b5.A_ApplyForce The created action