A Boolean value that indicates whether this physics body is affected by the physics world’s gravity.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The physics world’s
gravity property defines the gravitational forces applied to volume-based bodies in the scene.
The default value is
true. This property is ignored on edge-based bodies, which are always unaffected by gravity.
Physics bodies with
affectedByGravity set to
false are still affected by the gravity fields created by
Defining How Forces Affect a Physics Body
A Boolean value that indicates whether the physics body is affected by angular forces and impulses applied to it.
A Boolean value that indicates whether the physics body is moved by the physics simulation.