Skip to content

ShapeDef beta ​

Interface of @v12-engine/client

ts
export interface ShapeDef

One part of a unit drawn from a plain solid when it has no model: its kind, size, place and colour

Members ​

carrying ​

ts
carrying?: string;

Only shown while the unit carries this resource, like a sack of gold on a worker's back

color ​

ts
color: 'team' | [number, number, number];

'team' takes the color of the owning player

offset ​

ts
offset: [number, number, number];

Center of the part relative to the ground under the entity

shape ​

ts
shape: ShapeKind;

Which solid the part is

size ​

ts
size: [number, number, number];

Width, height, depth

tilt ​

ts
tilt?: number;

Rotation around the x axis, in radians

turn ​

ts
turn?: number;

Rotation around the y axis, in radians