clik-engine API
    Preparing search index...

    Class AnimationBinding<TContext>

    Declarative two-way binding between a HierarchicalStateMachine and an AnimationStateMachine.

    Usage:

    const binding = new AnimationBinding(hfsm, asm);
    binding.bind({ fsmState: 'idle', animState: 'idle' });
    binding.bind({ fsmState: 'attack', animState: 'attack', onComplete: 'idle' });
    // Call sync() after FSM transitions:
    binding.sync();

    Type Parameters

    • TContext = unknown
    Index

    Constructors

    Methods