So, I took the default third person character in unity 5.3.4f1, and I made a stick with two cylindrical objects, and grouped them in an empty object.
Now I wrapped the fingers of right hand around it, while it was standing in its default ‘T’ shape.
I have two queries:
The position of finger changes in game, i.e. when the character is in idle/walking/running mode. The fingers are not wrapped around anymore.
In game the character also keeps on crouching at regular intervals.(I have placed the Stick object inside the right arm in hierarchy of third person character; it has a mesh collider. And the character only crouches when stick is set to visible.).
What am I doing wrong, what am I not able to understand(also if it helps I have just started learning, so a basic step by step solution will be most appreciated)?
I’d change the order you are setting up the weapon.
First setup the character - so it works properly in the scene - without the weapon, then when the character is working properly - as a humanoid rig - parent the weapon to the hand.
You are not going to be able to override the animations by adjusting the fingers before/during setting up the rig. The animations will still play with finger straight.
To have the fingers curl around the handle, there will need to be an animation for the fingers curled and arm if you want that too. This has to be created externally in 3D animation software (I think?).
Then define a avatar mask for the hand, and create an override/additive layer in the animator. This will allow the hand to grasp the weapon while all the other animations play on the lower layer.
I’d give you a step by step - but that takes all the fun out of learning the process with hands on experience.
I tried but it still didn’t change. (If by parent the weapon to hand you mean to make the right arm be inside the stick group, i.e. under hierarchy the spine->stick->rightarm)
Parent the stick to the hand, and create a finger curl animation in animation package then import and setup.
Plenty of references to parent the stick to the hand -