An object that applies forces, such as gravitation, electromagnetism, and turbulence, to physics bodies within a certain area of effect.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
@interface SCNPhysicsField : NSObject
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 physics
property of a node in the scene.
Physics fields can affect both SCNPhysics
objects and the particles spawned by SCNParticle
objects.