Skip to content

ClipDef beta ​

Interface of @v12-engine/client

ts
export interface ClipDef

What a model says of one of its clips, by the clip's name (ModelDef.clips): its marks, and the part of it that is looped. An attack clip's blow is its hit mark (two fifths in when it has none). Model Setup's Animation tab writes it to looks.json

Members ​

loop ​

ts
loop?: {
        from: number;
        to: number;
    };

The part of it played over and over where it is a loop (idle, walk, sleep, a clip held), as shares of it, 0 to 1, so a lead-in is played out of: the whole clip when left out. A clip played once (an attack, a death) is played whole

marks ​

ts
marks?: ClipMark[];

Its moments by name: hit, foot, fx, the game's own

mask ​

ts
mask?: ClipMask;

The part of the body it plays on (ClipMask): the upper body for a swing or a cast, so the legs keep walking under it; the whole body when left out. A copy among a crowd plays it whole: layering needs the unit's own skeleton