Hi there,
I’m trying to animate an NPC character walking, but I want to have another animation, a shaking animation, influencing the walk if the player enters a certain proximity to the NPC, signified by a trigger collider. I’m not quite sure how to implement the shake.
I have idle, walk, and shake animations defined on my NPC. The shake animation only really has an impact when the NPC shakes up and down from the knees so putting an Avatar Mask for just the upper body doesn’t give it quite the impact I want. The shake animation is a standing animation though. I would like so that it influences and affects the walk animation, but not stops it. I made an animation controller and have heard that something like this can be accomplished through making a separate animation layer and setting it to Additive, but I don’t know how properly apply or script this? How would it be called in a script and can it just be set as a bool?
Any ideas on how to do this?