|
My headbob script I got from wiki unity community ruins my character. When I press play his arms are stretched WAY out in front of him, they are child objects of the main camera. I need them to be child objects because it is a FPS. How can I make it only effect the camera though? Here is code:
(comments are locked)
|
|
One option would be to have your mouselook scripts attached to an object that is a parent to both the camera and arms like this: Then you can attach the camera bob script to the camera and it won't effect the arms at all. I tried this (attached it to the main parent of entire character) and now my character falls through the terrain... not sure how this is happening, even if i raise him higher he still falls through.
Sep 05 '12 at 03:28 AM
bpears
That's odd... You don't want the camera to change the vertical (X) rotation of your character though, just the camera and arms. What object is your Character Controller on?
Sep 05 '12 at 03:46 AM
drizztmainsword
CharacterController is on entire player. His arms aren't getting stretched out all weird anymore, but he falls through... weird..
Sep 05 '12 at 04:06 AM
bpears
the thing is, I cant separate his arms and camera from body, because the movement is related to the rest of body.
Sep 05 '12 at 04:12 AM
bpears
(comments are locked)
|

sorry bout that