The exponent that defines the rate of decay for the strength of the field as the distance increases between the node and the physics body being affected.
SDKs
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
var falloff: Float { get set }
Discussion
When the force of a field node is calculated, the force is multiplied by pow(distance - min
. The default falloff value is 0
, which indicates that no attenuation takes place. Some types of field nodes ignore the falloff parameter entirely, while others change the default value to something that is more logical for that type of field node.