Type Alias

SCNParticleProperty

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

Declaration

typedef NSString *SCNParticleProperty;

Topics

Type Properties

SCNParticlePropertyAngle

The rotation angle, in radians, of the particle about its axis.

SCNParticlePropertyAngularVelocity

The particle’s angular velocity (or rate of spin), in radians per second.

SCNParticlePropertyBounce

The particle’s restitution coefficient.

SCNParticlePropertyCharge

The particle’s electric charge, in coulombs.

SCNParticlePropertyColor

The particle’s tint color, as a vector of red, green, blue, and alpha component values.

SCNParticlePropertyContactNormal

The normal vector, in scene coordinate space, of a collision between a particle and a geometry in the scene.

SCNParticlePropertyContactPoint

The location, in scene coordinate space, of a collision between a particle and a geometry in the scene.

SCNParticlePropertyFrame

The current frame index of the particle’s image animation.

SCNParticlePropertyFrameRate

The rate, in frames per second, of the particle’s image animation.

SCNParticlePropertyFriction

The particle’s friction coefficient.

SCNParticlePropertyLife

The remaining time in the particle’s life span, in seconds.

SCNParticlePropertyOpacity

The particle’s opacity (or alpha value).

SCNParticlePropertyPosition

The particle’s position vector in scene coordinate space.

SCNParticlePropertyRotationAxis

The particle’s axis of rotation, expressed as a vector in the particle’s local coordinate space.

SCNParticlePropertySize

The width and height of the rendered particle image, in units of scene coordinate space.

SCNParticlePropertyVelocity

The particle’s velocity vector in units (of scene coordinate space) per second.

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.

SCNParticleModifierStage

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

SCNParticleModifierBlock

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