Skip to content

fitAboutHit beta ​

Function of @v12-engine/client/lite-views

ts
export declare function fitAboutHit(length: number, hitAt: number, hit: number, after?: number, speed?: number): {
    before: number;
    after: number;
    toHit: number;
    left: number;
    clamped: boolean;
};

A clip timed about its blow (ModelDef.hitAt of its length): the part before the blow fitted to the windup (hit seconds), the part after to after seconds (the recovery, or the rest of the attack's period), each as fast as that takes within FIT_LIMITS. Gives the speed of each part, the seconds to the blow and to the end as played, and whether a part had to be held within the limits