The initial direction for newly spawned particles. Animatable.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
var emittingDirection: SCNVector3 { get set }
Discussion
If the the emitter
property value is nil
or the birth
property value is SCNParticle
, newly spawned particles emit in the direction specified by this property. You can randomize the direction of newly spawned particles with the spreading
property.
The default value is the vector {0
, specifying that particles emit in the direction of the positive z-axis.
You can animate changes to this property’s value. See Animating SceneKit Content.