So I did quite a long search on this one, but I couldn’t find anything useful for me. I’ve seen this done in Unity games, I’ve checked out several player scripts, but I still don’t understand how this is done. I have a player model, which has 2 animations for aiming: aim up and aim down. I want to interpolate between these two animations using vertical input from the mouse. I read things about animation layering and procedural animation scripting and I got pretty confused.
I’m using the Locomotion system so I want to have different animations for the body and legs running at the same time.
I’ve done this using additive animations. Both animations are always at blend 100%, and the frame # is set by the aim amount [i.e. aim up starts forward, and is 90 degrees up and frame 90. vice versa for aim down. When aiming fully up, aimUp is on frame 90, aimDown is at frame 0]
Thanks for your reply! Yeah, that sounds just like how I imagined it to be but can you tell me more about the blending? Do I just use the Blend function from the Animation Class or it’s more complicated. And also how will I make it so the animation just affects the upper body of the player?