Posted August 09, 2023 by Empty Bottle
#animations #animator #state machine #pet #Devlog
NPC animations can be tricky to get right.
In Numb I use the animator to easily manage the various states.
We can't talk about AI, but with this system I can handle
the most plausible animation to reproduce.
Each node has a StateMachineBehaviour that on enter (exit or both) sets a random value from a selected range.
The exit conditions of a node are determined by that value. Each node, if it has no related animations, has a linear exit condition (based on the length of the animation)