Applies a force to a body.
name | type | description |
---|---|---|
force | Phaser.Math.Vector2 |
A Vector that specifies the force to apply. |
This Game Object instance.
Applies a force to a body from a given position.
name | type | description |
---|---|---|
position | Phaser.Math.Vector2 |
The position in which the force comes from. |
force | Phaser.Math.Vector2 |
A Vector that specifies the force to apply. |
This Game Object instance.
Apply thrust to the forward position of the body.
Use very small values, such as 0.1, depending on the mass and required speed.
name | type | description |
---|---|---|
speed | number |
A speed value to be applied to a directional force. |
This Game Object instance.
Apply thrust to the left position of the body.
Use very small values, such as 0.1, depending on the mass and required speed.
name | type | description |
---|---|---|
speed | number |
A speed value to be applied to a directional force. |
This Game Object instance.
Apply thrust to the right position of the body.
Use very small values, such as 0.1, depending on the mass and required speed.
name | type | description |
---|---|---|
speed | number |
A speed value to be applied to a directional force. |
This Game Object instance.
Apply thrust to the back position of the body.
Use very small values, such as 0.1, depending on the mass and required speed.
name | type | description |
---|---|---|
speed | number |
A speed value to be applied to a directional force. |
This Game Object instance.