Contents

isAffectedByPhysicsFields

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

Declaration

var isAffectedByPhysicsFields: Bool { get set }

Discussion

SCNPhysicsField objects attached to nodes in the scene apply forces to bodies in their area of effect. For example, a radial gravity field attracts bodies toward its center, and a vortex field applies forces that circulate around a specified axis. The forces applied by a physics field on each particle are proportional to its mass, as specified by the particleMass property.

The default value is false, specifying that physics fields in the scene do not affect particles.

See Also

Simulating Physics for Particles