Hello everyone.
I am programming a gun system, and I want a recoil animation to play when the gun fires. I already have everything set up, with the exception of the actual animation. The issue is, I have many guns, each with their own “holding animation” customized to their shape.
I don’t want to create a unique recoil animation for every one of them because the animation itself is a really simple movement. All that is supposed to happen is that the character’s shoulders are angled upwards on the following frame and restored to their original position on the next.
To demonstrate, I manually created one based on the formula shown above. Here is a video:
(Notice how the gun is shaking with the firing)
Given all of this, I wonder if there is an automatic way to take the existing holding animation of the gun, attach the two frames of shoulder movement, and play the modified animation. I have already tried to create a script which changes the Motor6D of the shoulders in this way, but nothing moved. Any ideas?