Instance Property

inputBias

An offset to add to the input value of the controller’s animation.

Declaration

@property(nonatomic) CGFloat inputBias;

Discussion

Use this property and the inputScale property to pre-process input values to the controller’s animation. For example, if you use the SCNParticleInputModeOverDistance option to animate a particle’s opacity as a function of its distance from a specified point, a bias specifies the minimum distance at which the animation’s fromValue property or first keyframe value takes effect.

The default value is 0.0, leaving the input value to the animation unchanged. The range of possible values depends on the controller’s animation.

See Also

Managing the Controller’s Animation

animation

The Core Animation object defining the behavior of the property animation.

inputMode

The mode that determines input values for the property controller’s animation.

inputScale

A factor for multiplying the input value of the controller’s animation.

inputOrigin

A node whose distance to each particle provides input values for the controller’s animation.

inputProperty

A particle property that provides input values for this property controller’s animation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software