Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

Piece interface

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

View as Markdown
import type { Piece } from '@dioramajs/model/explode'
interface Piece

Members

NameTypeDescription
readonly boxBox3

Bounds at rest.

readonly nodeObject3D
readonly offsetVector3

Offset at spread: 1.

readonly outerreadonly number[]

Indices of the pieces it sits inside, which carry it along.

readonly toParentMatrix3

Takes a file offset into the parent's space.

Defined in packages/model/src/explode.ts.