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 }] Copy
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 }]
Evaluate the blend tree at a given parameter value. Returns weighted animation keys.
Get the dominant animation (highest weight) at a parameter value
Get entries
1D blend tree — blends between animations along a single axis.
Usage: