Strata - v1.4.10
    Preparing search index...

    Interface AnimationBlendReturn

    Return type for useAnimationBlend hook.

    interface AnimationBlendReturn {
        blendTo: (animation: string, duration?: number) => void;
        getParameter: (name: string) => number;
        setParameter: (name: string, value: number) => void;
        updateWeights: () => void;
        weights: BlendWeights;
    }
    Index

    Properties

    blendTo: (animation: string, duration?: number) => void

    Blend to a target animation

    getParameter: (name: string) => number

    Get current parameter value

    setParameter: (name: string, value: number) => void

    Set blend tree parameter

    updateWeights: () => void

    Update blend tree weights based on parameters

    weights: BlendWeights

    Current blend weights for all animations