I have this hierarchy:
_Player
_Arms
Arm_R
Arm_L
Body
Main Camera
Face
I use this code to move the arms forward and backward:
arms.position = new Vector3(transform.position.x, transform.position.y, arms.position.z);
arms.Translate(0, 0, Input.GetAxisRaw("Fire") * armSpeed);
It works fine, though whenever I move the arms go flying around rather than staying next to my character.
![alt text][1]
[1]: http://i.imgur.com/WwflJki.png
Anyone have an idea of how to fix this?
↧