Skip to content

SwingTrailLook beta ​

Interface of @v12-engine/client

ts
export interface SwingTrailLook

A streak behind a melee swing (AttackLook.trail, FeelLook.trails): a ribbon drawn from a point of the model (a hand, a blade's tip) over the moments about the blow

Members ​

alpha ​

ts
alpha?: number;

How see-through, 0..1: 0.7 when left out

at ​

ts
at?: string;

The point it is drawn from: a point of the model (ModelDef.points) or a node of its file, by name. The right hand of the shared characters (handslot.r) when left out

color ​

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

Its colour as red, green, blue (0..1), or team: the colour of the swinger's player, lightened a little, which reads on bright ground where white does not. The feel's (TrailsFeel.color, team) when left out

offset ​

ts
offset?: [number, number, number];

How far from there, in the node's own units: toward a blade's tip

seconds ​

ts
seconds?: number;

How long it trails, in seconds: 0.16 when left out

width ​

ts
width?: number;

How wide, in world units: 0.12 when left out