Instance Property

allowsRotation

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

Declaration

var allowsRotation: Bool { get set }

Discussion

The default value is true. This property is ignored on edge-based bodies, which are unaffected by forces in the system.

See Also

Defining How Forces Affect a Physics Body

var affectedByGravity: Bool

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

var isDynamic: Bool

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software