Instance Property

affectedByGravity

A Boolean value that indicates whether this physics body is affected by the physics world’s gravity.

Declaration

@property(nonatomic, assign) BOOL affectedByGravity;

Discussion

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 linearGravityFieldWithVector: and radialGravityField.

See Also

Defining How Forces Affect a Physics Body

allowsRotation

A Boolean value that indicates whether the physics body is affected by angular forces and impulses applied to it.

dynamic

A Boolean value that indicates whether the physics body is moved by the physics simulation.