Creates an action that applies a force to the center of gravity of a node’s physics body.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A vector that describes how much force is applied in each dimension. The force is measured in Newtons.
The duration over which the force is applied to the physics body.
A new action object.
When the action executes, the force is applied continuously to the physics body for the duration of the action. This action accelerates the body without imparting any angular acceleration to it.
This action is reversible; it applies an equal force in the opposite direction.