Skip to content

DebrisPiece beta ​

Interface of @v12-engine/client

ts
export interface DebrisPiece

A kind of piece something breaks into: its shape, its size, its colour, and how many of it

Members ​

color ​

ts
color: Rgb;

The colour of the piece, 0 to 1 per channel

count ​

ts
count?: number;

1 when left out

shape ​

ts
shape: ShapeKind;

The shape of the piece, a ShapeKind (a box, a ball, ...)

size ​

ts
size: [number, number, number];

Width, height and depth