SCNPhysicsField
An object that applies forces, such as gravitation, electromagnetism, and turbulence, to physics bodies within a certain area of effect.
Declaration
class SCNPhysicsFieldOverview
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
drag()vortex()radialGravity()linearGravity()noiseField(smoothness:animationSpeed:)turbulenceField(smoothness:animationSpeed:)spring()electric()magnetic()