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

# pinned

A Boolean value that indicates whether the physics body’s node is pinned to its parent node.

## Declaration

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

## Mentioned in

Pinning and Rotating Physics Bodies Getting Started with Physics

## Discussion

Discussion The default value is false. If true, the node’s position is fixed relative to its parent. The node’s position cannot be changed by actions or physics forces. The node can freely rotate around its position in response to collisions or other forces. If the parent node has a physics body, the two physics bodies are treated as if they are connected with a pin joint.

## See Also

### Pinning a Physics Body to a Node’s Parent

- [Pinning and Rotating Physics Bodies](spritekit/pinning-and-rotating-physics-bodies.md)
