Structure

CAEmitterLayerEmitterShape

No overview available.

Declaration

struct CAEmitterLayerEmitterShape

Topics

Type Properties

static let circle: CAEmitterLayerEmitterShape

Particles are emitted from a circle centered at (emitterPosition.x, emitterPosition.y, emitterZPosition) of radius emitterSize.width.

static let cuboid: CAEmitterLayerEmitterShape

Particles are emitted from a cuboid (3D rectangle) with opposite corners: [emitterPosition.x - emitterSize.width/2, emitterPosition.y - emitterSize.height/2, emitterZPosition - emitterDepth/2], [emitterPosition.x + emitterSize.width/2, emitterPosition.y + emitterSize.height/2, emitterZPosition+emitterDepth/2].

static let line: CAEmitterLayerEmitterShape

Particles are emitted along a line from (emitterPosition.x - emitterSize.width/2, emitterPosition.y, emitterZPosition) to (emitterPosition.x + emitterSize.width/2, emitterPosition.y, emitterZPosition).

static let point: CAEmitterLayerEmitterShape

Particles are emitted from a single point at (emitterPosition.x, emitterPosition.y, emitterZPosition)

static let rectangle: CAEmitterLayerEmitterShape

Particles are emitted from a rectangle with opposite corners [emitterPosition.x - emitterSize.width/2, emitterPosition.y - emitterSize.height/2, emitterZPosition], [emitterPosition.x + emitterSize.width/2, emitterPosition.y + emitterSize.height/2, emitterZPosition].

static let sphere: CAEmitterLayerEmitterShape

Particles are emitted from a sphere centered at (emitterPosition.x, emitterPosition.y, emitterZPosition) of radius emitterSize.width.

Relationships