Reload animation IK change parent issue
Hello guyss!
I am making a WWII FPS and I am struggling with reload animations. Basically my weapon socket object (object which contains any weapon) is a child of my soldier's right hand, this is all fine as long as I do not need to move my right hand to perform a reload action for example (especially with bolt action rifles)
Because whenever I am going to be moving the right hand to perform the reload movement the weapon socket containing the weapon will be moving with the right hand
What I would like ideally is to have the weapon socket move from the right hand to the left hand (change parent) during the animation, but from what I have read this is straight impossible ...
What I thought would solve the issue is change the parent BEFORE playing the animation (through code with references to both hands), but whenever I change the weapon socket's parent from the right to the left hand its rotation just gets fucked up (I get that the left hand's rotation gets applied to the weapon socket, have a look : https://gifyu.com/image/SMioh) that is why I made a back up of the weapon's rotation I world space, then changed the parent, then applied back the rotation but that doesn't work rotation is still fucked up so I am at a loss at this point, why does the rotation simply not apply?
How am I supposed to get my right hand move without my weapon socket moving? Cheers, any hep with be appreciated, I would like to even gift the game to the person that will help solve this problem! It is a battlefield / Post Scriptum like game (tons of vehicles and realistic)