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.
Yes, you’ll need to do this with animation layers and blending:
http://unity3d.com/support/documentation/Manual/Character-Animation.html
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.