clik-engine API
    Preparing search index...

    Class BlendTree1D

    1D blend tree — blends between animations along a single axis.

    Usage:

    const tree = new BlendTree1D([
    { animKey: 'idle', threshold: 0 },
    { animKey: 'walk', threshold: 0.5 },
    { animKey: 'run', threshold: 1 },
    ]);
    tree.evaluate(0.3); // → [{ animKey: 'idle', weight: 0.4 }, { animKey: 'walk', weight: 0.6 }]
    Index

    Constructors

    Methods