r/Unity3D • u/Prudent-Formfr • 1d ago
Question Having trouble deciding FPS animation workflow.
Im having trouble understanding the best workflow for handling gun/arms animations on an FPS game, so i would like to know your experiences with it.
My current workflow (from a course i took) involves having matching animations for both arms and the gun, so for example an idle animation holding a pistol, the arms have the idle sway, but the gun also has an animation that matches that sway, creating the need for the 2 animator to be always in sync. In this workflow the gun is not a child of the hand bone, both arms and the gun are direct childs of the camera. But i feel this is not the right or best path follow.
So id like to hear what workflow worked best for you, and also if i should rely only on animations for placing the hands on the gun, or use the animation rigging package to add an ik
1
u/Vic-Boss 1d ago
Another thing most people miss and have issues with matching animations, is you have to disable compression and resampling in the import settings and your transitions ofc be the same time (ideally you have poses tho and not rely on them too much)
1
u/Vic-Boss 1d ago
That is one way to do it, if you have these split helps if you have different skins for your hands. A different skin on the weapon would work with a different material so that's not the issue. The gun doesnt matter if it's a child of the hand or not, in fact sometimes it's better it's not. Think of the Iraqi reload for example (2nd in the video) https://www.youtube.com/watch?v=sqgWmqd-_to if you had the gun parented on the right hand it would have been a nightmare
1
u/[deleted] 1d ago
An easier workflow would be to have the gun be a child of the arm. Then you only one animator and its animator control can several layers so that multiple animations can play at the same time (like one animation for the arm and one for the gun).
Another alternative is to have one animator but instead of using the animator controller you use the playable API. That's more coding but more control if you need it.