A vector that specifies the gravitational acceleration applied to physics bodies in the physics world.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The components of this vector are measured in meters per second per second. The default value is
This property applies a constant acceleration to all physics bodies in the world, simulating the effect of gravity near the surface of the Earth. For more sophisticated gravity effects, including limited areas of effect and strength proportional to distance, use the
SCNPhysics class. When using fields, you may want to set this property to the zero vector so that fields provide all gravity effects in the physics world.