Instance Property

colliderNodes

The nodes whose geometry the system’s particles can collide with.

Declaration

@property(nonatomic, copy) NSArray<SCNNode *> *colliderNodes;

Discussion

A particle system can perform limited collision detection and resolution with geometries in the scene. If a moving particle intersects a geometry attached to one of the SCNNode objects in this array, SceneKit resolves the collision, either by removing the particle from the scene or allowing it to bounce off or slide along the geometry’s surface.

This array is empty by default.

See Also

Simulating Physics for Particles

affectedByGravity

A Boolean value that determines whether gravity, as defined by the scene’s physics simulation, affects the motion of particles.

affectedByPhysicsFields

A Boolean value that determines whether physics fields in the scene affect the motion of particles.

particleDiesOnCollision

A Boolean value that determines whether particles are removed from the scene upon colliding with another object.

acceleration

The constant acceleration vector, in units per second per second, applied to all particles in the system. Animatable.

dampingFactor

A factor that slows particles relative to their velocity. Animatable.

particleMass

The mass, in kilograms, of each particle in the system. Animatable.

particleMassVariation

The range, in kilograms, of randomized particle masses. Animatable.

particleCharge

The electric charge, in coulombs, of each particle in the system. Animatable.

particleChargeVariation

The range, in coulombs, of randomized particle charges. Animatable.

particleBounce

The restitution coefficient of each particle in the system. Animatable.

particleBounceVariation

The range of randomized restitution coefficients for particles. Animatable.

particleFriction

The friction coefficient of each particle in the system. Animatable.

particleFrictionVariation

The range of randomized friction coefficients for particles. Animatable.