Contents

charge

The particle’s electric charge, in coulombs.

Declaration

static let charge: SCNParticleSystem.ParticleProperty

Discussion

This property’s value is a floating-point scalar (an NSNumber object for particle property controllers, or a single float value for particle event or modifier blocks). A particle’s charge determines its behavior when affected by an electric or magnetic field created with the SCNPhysicsField class.

The particle system’s particleCharge and particleChargeVariation properties determine the initial charge for each particle.

See Also

Type Properties