Skip to content

damagePointFromClip beta ​

Function of @v12-engine/client

ts
export declare function damagePointFromClip(model: ModelDef, clip: string, length: number, speed?: number): {
    damagePoint: number;
    recovery: number;
    hitAt: number;
};

The timing of an attack a clip says (AttackDef.damagePoint, recovery), so the swing and the blow agree: the blow at the clip's hit mark (ClipDef.marks; two fifths in where it has none), the backswing the rest of it. length is the clip's seconds at its own pace (Animator.seconds), speed how much faster it is to be played (AttackLook.speed). What the editor's Attack tab writes with From the clip; the simulation keeps its own numbers, so games stay in step