Game Development Reference
In-Depth Information
How it works...
We can see that the Animation enum has had a field called key added. This is not neces-
sary but is part of a way to not have to hard-code animation names.
By using the addFromRootBone method, the channel will automatically add all the
bones recursively, starting with the bone that is supplied first. After adding spine to up-
perChannel , it will continue down the chain, adding shoulders, neck, arms, and hands,
as shown in the following screenshot:
Search WWH ::




Custom Search