• RuntimesGodot
  • Editing the mix values of an Transform constraints at runtime

For my use case, I would like to create a stair climbing animation for variable stair step heights. I thought of achieving this with transform constraints, though I can't find a way to change the mix values of these constraints in Godot at runtime.

Is this possible at all?

Related Discussions
...
14 дней спустя

Sorry for the late reply.

spine-godot exposes the full constraints API. You can find a constraint via

constraint = SkeletonSprice.skeleton.find_transform_constraint(name_of_constraint)

You can then modify the properties of the constraint, e.g.

constraint.set_mix_x(0.5) or constraint.set_mix_y(0.5)

No worries, Thank you for the help.