![]() In this flowchart, states are represented by rectangles, and arrows represent transitions from one state to another.įlowcharts are a nice way to visualize multi-state finite-state-machines, is it allows you to follow the logical flow of the animation. Here is the state-machine, visualized as a flow-chart: We can annotate these states with the two pieces of information described above: The reason that state-machines are useful, is they allow us to naturally break up our animations into a logical flow, where each state handles its own animations and its own logic.įor example, imagine you want to animate the spinning blade of a helicopter - but only when on the ground. When a state machine "runs", you can think of it as moving from state to state, executing the logic inside, and then following transitions to other states. They aren't only found in minecraft! You can learn more about state machines here.Ī state machine can only be in one state at a time. State machines are used all over the place, especially in classical programming. ![]() ![]() State machines are a special kind of logic management, that relies on a series of states. In the resource pack, animation controllers (RPAC) are used to play animations, and in the behavior pack (BPAC), they are used to play commands, and command "animations". Animation controllers (AC) are state-machines that can be used in both the resource pack, and the behavior pack.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |