Aego Русский

Go

p, _ := sdk.Get[sdk.AnimationPlayer](scene, node)
p.Play(sdk.AnimClip{ID: runClip})
sdk.AnimationOf(ctx).SetParam(hero, "Speed", 3)

sdk.AnimationOf(ctx) returns the service of the play world; SetParam(node, name, value) sets a parameter of an Animator by name, true and false as 1 and 0. The systems animation.fixed (PrePhysics, after script.fixed and the anchor engine.intents, before engine.motion) and animation.sample (Animation, always) advance and draw players and animators. A Go system that sets parameters or commands runs before engine.intents; a system that reads root motion runs after engine.motion.

Root motion reaches a character through the motion2d.receiver contract (contracts/motion2d), which Motion 2D provides; another controller can provide it too.