Contents

particleAngle

The rotation angle, in degrees, of newly spawned particles. Animatable.

Declaration

var particleAngle: CGFloat { get set }

Discussion

A particle’s angle (or orientation) is independent from its direction of motion. For example, a smoke effect may use a small image of a cloud for each particle, which stays at the same angle as the smoke rises, but a snow effect may use an image that flips and rotates as each snowflake falls. The orientationMode property determines whether and how particles are allowed to rotate, and the particleAngle and particleAngularVelocity properties determine rotation angles and rates. You can randomize the rotations of newly spawned particles with the particleAngleVariation property.

The default value is 0.0 degrees, specifying no rotation.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Managing Particle Motion