---
title: allowsRotation
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsbody/allowsrotation
---

# allowsRotation

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

## Declaration

```swift
var allowsRotation: Bool { get set }
```

## Discussion

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

- [affectedByGravity](spritekit/skphysicsbody/affectedbygravity.md)
- [isDynamic](spritekit/skphysicsbody/isdynamic.md)
