Contents

colliderNodes

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

Declaration

var colliderNodes: [SCNNode]? { get set }

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