Download

State vs Conduit?

The docs say that Conduits are useful for multiple transitions, however states can do this too.

I’m currently using a state that branches into multiple animations based on a few values, similar to this design:

Since states can also do this, I don’t understand the purpose of actually using conduits, and how they differ.

Anyone care to clear up my confusion?

Thanks! :slight_smile:

A conduit serves to just check an initial condition with no need for a ‘final pose’ that states require. It can be viewed as a transition that can be 1-1, 1-many or many-1.
The example mentions a ‘killed’ condition and ‘killed how’. Using a conduit ensures that the initial condition is fulfilled before we start checking and transitioning down the ‘how’ route.

If you were to use states to do this you would be checking the ‘killed’ condition in every transition as well as the ‘killed how’. You would also have multiple transition lines going from your previous states to these different death animations causing a lot of clutter.

Oh I see, so it can be used for detailed transitional conditions that don’t require their own animations.
Thanks!

1 Like