Creating first-person animations

Hi guys,

Wondering if anyone can spare some tips or basics for how they go about creating these. I’ve been working on some for the first time, not entirely sure I’m doing it properly, as I’m having some issues now.

First, here’s how I’m going about it: http://puu.sh/3ocLm.png
I’ve rigged the arms/hands as normal. The yellow box is “weapon_root” which is constrained to the right hand. Parented under that is the green box “weapon_holder” which is what the weapon meshes get put into, to make any modification to translation/rotation separate from what the wrist gives it. Ultimately the mesh won’t be part of this export, as the weapons will be imported into Unity separately and added into weapon_holder in-game.

Though I’m not sure if this is even the proper way, it does work.

The problem I’m having is that in-game, the weapons (probably weapon_holder) are getting offset from the hands. I don’t know what’s causing it, because when I view the animation in the Preview window under Import, everything looks fine. It’s just once it’s in-game it messes up. And just to be clear, this is when testing with weapons that are actually part of the animation file, not added on in-game. Here’s an example of the offset http://puu.sh/3odzo.jpg

So if anyone has experienced a similar issue, or has a better way of rigging for first-person animations, please do share. Thanks.

SOLVED

Okay went back to toy with this, apparently it was really simple. I had to make sure under FBX export settings I was also exporting constraints. Strangely, never needed that on before, but it stopped the weapon offsetting from the hands.