Piece interface
A part that moves apart, with everything about it in the file's coordinates.
import type { Piece } from '@dioramajs/model/explode'interface PieceMembers
| Name | Type | Description |
|---|---|---|
readonly box | Box3 | Bounds at rest. |
readonly node | Object3D | |
readonly offset | Vector3 | Offset at |
readonly outer | readonly number[] | Indices of the pieces it sits inside, which carry it along. |
readonly toParent | Matrix3 | Takes a file offset into the parent's space. |
Defined in packages/model/src/explode.ts.