Bolt action reload animation + IK

Good day everyone!

Been working on my WWII fps for a while now and I am pretty stuck with doing animations. I could get pretty much everything to work, but switching parents during an animation is just not possible according to unity since it breaks everything.

here’s a little screenshot of how everything is arranged just so you have a better idea :

Basically, all the bolt action rifles need the right hand to perform the reload action. But the issue is my weapon socket in which I place all my weapons is a child of the right hand.

Now, I use the animator to play the reload animation so that the right hand does the reload movement, but when it does well obviously the weapon socket moves because it’s a child, and I need it NOT to move, so like to block all changes to it.

I wanted and tried to swap the parent at runtime so I made the weapon socket be a child of the left hand when the player performs the reload animation, but then rotation gets all weird and I can’t have it to just change parent but not change its own rotation

I just want to be able to perform a reload animation for bolt rifles without having the weapon socket going crazy, is that really so hard to do?

Any help will be surely appreciated :slight_smile:

Thanks!

did you ever figure out a solution to this? I’m facing the same issue

Absolutely not

I mean. Not with base Unity stuff, no.

Here’s what solved it: https://assetstore.unity.com/packages/tools/animation/fps-animation-framework-238641

interesting. the issue is the game im working on already has a huge system for all the gun mechanics but again i am seeing your issue with not being able to rip the ik from the right hand to allow a bolt action animation.vary frustrating

Yeah luckily for me infantry hasn’t been worked on much yet, and I can use an entirely new system

As for you, I’m afraid I don’t have a solution, sorry :frowning:

It would be very interesting to hear from a Unity dev, what they would do…

1 Like