Contents

SCNPhysicsField

An object that applies forces, such as gravitation, electromagnetism, and turbulence, to physics bodies within a certain area of effect.

Declaration

class SCNPhysicsField

Overview

You can create many types of field effects, such as gravitation, electromagnetism, and turbulence. To add a field effect to a scene, you create a physics field of the type you want to use and then attach it to the physicsField property of a node in the scene.

Physics fields can affect both SCNPhysicsBody objects and the particles spawned by SCNParticleSystem objects.

Topics

Creating Physics Fields

Creating Custom Physics Fields

Specifying a Field’s Area of Effect

Specifying a Field’s Behavior

Choosing Physics Bodies to Be Affected by the Field

Constants

Initializers

See Also

Physics in a Scene