- Home /
how to make a character lean over or back when looking up or down
so ive been making this FPS, and instead of just a FPS controller, with a gun floating in it, ive actually animated a character and parented the camera to the head bone. this way, the player can see the characters body and feet when they look down and not just the gun and arms. i have a mouse look for the x axis on the character and a y axis script for the camera. is there anyway i can animating a "leaning over" animation that follows the camera as it looks down, as with a "looking up" animation when the camera looks up? i cant seem to think of a valid solution with my current scripting knowledge. at the moment i have a character that can walk, sidestep, jump, and turn. as soon as this issue is resolved i can continue creating the weapons for the game. thanks alot, Thomas.
Answer by testure · Jun 18, 2011 at 04:30 PM
Yes, you'll need to do this with animation layers and blending: http://unity3d.com/support/documentation/Manual/Character-Animation.html
Answer by Thomassucks · Jun 18, 2011 at 07:19 PM
thank you for your answer ive done a little more research into this issue and i have found that using the animationstate.time works for what im looking for but i have no idea how to use this function or how to link it to mousey.
Your answer
Follow this Question
Related Questions
Crouch Scale Problem! 0 Answers
aiming with animation 1 Answer
FPS Character Modelling help, (ie, hands, arms, vs full body, etc) 1 Answer
Procedural character aiming 2 Answers