---
title: isDynamic
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsbody/isdynamic
---

# isDynamic

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

## Declaration

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

## Mentioned in

Getting Started with Physics Bodies Getting Started with Spring Joints

## Discussion

Discussion The default value is true. If the value is false, the physics body ignores all forces and impulses applied to it. This property is ignored on edge-based bodies; they are automatically static.

## See Also

### Defining How Forces Affect a Physics Body

- [affectedByGravity](spritekit/skphysicsbody/affectedbygravity.md)
- [allowsRotation](spritekit/skphysicsbody/allowsrotation.md)
