A Boolean value that indicates whether the physics body is affected by angular forces and impulses applied to it.
SDKs
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
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.