Enumeration

SCNParticleModifierStage

Stages of SceneKit’s particle simulation process into which you can insert modifier blocks, used by the addModifierForProperties:atStage:withBlock: method.

Declaration

typedef enum SCNParticleModifierStage : NSInteger {
    ...
} SCNParticleModifierStage;

Topics

Constants

SCNParticleModifierStagePreDynamics

The stage before SceneKit simulates the motion of particles.

SCNParticleModifierStagePostDynamics

The stage after SceneKit simulates the motion of particles.

SCNParticleModifierStagePreCollision

The stage before SceneKit simulates the results of collisions between particles and scene geometry.

SCNParticleModifierStagePostCollision

The stage after SceneKit simulates the results of collisions between particles and scene geometry.

See Also

Modifying Particles Over Time

propertyControllers

A dictionary that optionally associates particle properties with objects that animate a property’s value for each particle.

- addModifierForProperties:atStage:withBlock:

Adds a block that modifies particle properties, to be executed each time SceneKit renders a frame.

- removeModifiersOfStage:

Removes particle modifier blocks for the specified stage of the particle simulation.

- removeAllModifiers

Removes all particle modifier blocks associated with the particle system.

SCNParticleProperty

Keys identifying properties of individual particles, used by the propertyControllers dictionary and the handleEvent:forProperties:withBlock: and addModifierForProperties:atStage:withBlock: methods.

SCNParticleModifierBlock

The signature for blocks called by SceneKit to modify particle properties on each frame of simulation, used by the addModifierForProperties:atStage:withBlock: method.