TransitionSM

from acron.anim import TransitionSM
class TransitionSM(xfade: float = 0.2)

Bases: object

A cross-fading state machine over named animation states.

Each state is a callable returning {anim: weight} for the current inputs (usually a BlendSpace2D sample plus extras). request(state) starts a cross-fade to another state over xfade. weights() returns the combined {anim: weight} with the fade applied.

Inheritance diagram

digraph inheritance91774dc355 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "TransitionSM" [URL="acron.anim.TransitionSM.html#acron.anim.TransitionSM",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A cross-fading state machine over named animation states."]; }
property current