# Piece

interface in `@dioramajs/model/explode`

```ts
import type { Piece } from '@dioramajs/model/explode'
```

A part that moves apart, with everything about it in the file's coordinates.

```ts
interface Piece
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `box` | `Box3` | Bounds at rest. |
| `node` | `Object3D` |  |
| `offset` | `Vector3` | Offset at `spread: 1`. |
| `outer` | `readonly number[]` | Indices of the pieces it sits inside, which carry it along. |
| `toParent` | `Matrix3` | Takes a file offset into the parent's space. |

Defined in [packages/model/src/explode.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/explode.ts#L31).
