Quantcast
Channel: Latest Questions by Rangicus
Viewing all articles
Browse latest Browse all 6

Keeping Object At Side Of Other

$
0
0
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?

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>