Varying the pickup animation with a Blend Tree
Back in Chapter 3, Interacting with the Environment, we created character interaction with the environment by allowing the player character to pick up objects. A single animation sequence was used for this.
In the game, the character will need to pick up collectables of various sizes and weights. In order to visualize this variation in the game, we will be demonstrating a different use of Blend Trees.
In order to use a Blend Tree, a minimum of two motion clips is necessary. We supplemented the original pickup motion with another pickup animation to suit a heavier object.
Next, we will take a look at the differences between the two animation clips.
Viewing the pickup_heavy animation sequence
Once again, we will make use of the zombie_m
character to preview the whole animation:
- In the Project panel, click on the
PACKT_Animations
folder. - Locate the
pickups
asset. - Click on it to view its import settings in the Inspector panel.
The two animation clips contained...