- Home /
Make an object move with Character Hands Animation
I downloaded Nightmare project assets and there is a kid model holding a gun i disabled the gun that he is holding and i wanted to place another gun that i made instead i placed it as a child of the player in the hierarchy and modified his position to be in the character hands
but when i start the game the gun is following the player but his position is rest to 0 and because the player has a Move animation the player keep moving while the gun stand still in front of him like this:
please i need to know how to fix this i searched a lot and no answer! isn't there a way to make the gun stick to the hands wherever they move? via script or Editor there have to be a way to do so
Answer by Cherno · Sep 11, 2014 at 10:43 AM
If the character has a bone structure underneath, then just find the hand bone in the object's hierarchy and make the gun a children of it, then the gun will always move with the right hand. For the left hand, which should probably grip the front part of the gun, you would have to create your own simple Inverse Kinematics solution if you are not using Unity Pro (which has IK built in), or download one from the asset store.
Don't take this the wrong way, but I strongly suggest you start using interpunctuation so the text you write is more readable.
No the Character has no bone structure it came with the previous weapon in one fbx model