new b5.A_Gravity(target, gravity_x, gravity_y){b5.A_Gravity}
actions/generic/movement.js, line 84
Action that applies gravity to an object, 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 |
gravity_x |
number |
Gravity strength on x-axis |
gravity_y |
number |
Gravity strength on y-axis |
Returns:
Type | Description |
---|---|
b5.A_Gravity | The created action |