The constant acceleration vector, in units per second per second, applied to all particles in the system. Animatable.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Use this property to simulate effects such as wind or gravity on particles.
To use the same gravity vector that applies to physics bodies in the scene, or to apply more than one constant acceleration to particles, see the
The default value is
SCNVector3Zero, specifying no acceleration.
You can animate changes to this property’s value. See Animating SceneKit Content.
Simulating Physics for Particles
A Boolean value that determines whether gravity, as defined by the scene’s physics simulation, affects the motion of particles.
A Boolean value that determines whether physics fields in the scene affect the motion of particles.
The nodes whose geometry the system’s particles can collide with.
A Boolean value that determines whether particles are removed from the scene upon colliding with another object.
A factor that slows particles relative to their velocity. Animatable.
The mass, in kilograms, of each particle in the system. Animatable.
The electric charge, in coulombs, of each particle in the system. Animatable.
The restitution coefficient of each particle in the system. Animatable.
The friction coefficient of each particle in the system. Animatable.