Global Variable

SCNParticlePropertyCharge

The particle’s electric charge, in coulombs.

Declaration

const SCNParticleProperty SCNParticlePropertyCharge;

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.