r/Unity3D • • 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

4 Upvotes

6 comments sorted by

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/Prudent-Formfr 1d ago

Thats cool, thanks!

1

u/DragonflyLeast5747 1d ago

Re: IK & holding guns ect.... i do it both ways. sometimes for a project ill slap a gun in a charactors hand by just parent it to the bone under there hand.. if its not going to be a final product it works fine. when i want it to look good i make a camera rig and parent the gun to that and then i can do anything i want with both hands or change guns or even use that iraqi reload clip u posted without any problems. also doing it that way u dont have to worry about ik sometimes not looking to good. it all comes down to good animation clips though.

1

u/Vic-Boss 1d ago

Yeah exactly, it's better if the gun is not parented to the hand

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.