falloff(by:duration:)
Creates an action that animates a change of a physics field’s falloff to a value relative to the existing value.
Declaration
class func falloff(by falloff: Float, duration: TimeInterval) -> SKActionParameters
- falloff:
The value to add to the falloff.
- duration:
The duration of the animation, in seconds.
Return Value
A new action object.
Discussion
When the action executes, the field node’s falloff property animates from its current value to its new value.
This action is reversible; the reverse is created as if the following code is executed:
See Also
Animating Properties of a Node’s Physics Body
applyForce(_:duration:)applyTorque(_:duration:)applyForce(_:at:duration:)applyImpulse(_:duration:)applyAngularImpulse(_:duration:)applyImpulse(_:at:duration:)applyImpulse(_:duration:)changeCharge(to:duration:)changeCharge(by:duration:)changeMass(to:duration:)changeMass(by:duration:)strength(to:duration:)strength(by:duration:)falloff(to:duration:)