- Home /
Blender animation walk in unity
Ok, so iv made an animated character walk in blender, and exported it to unity. How can i combine it to, say, the First Person Controller, so that the animation attached to the character will only play the walk animation if the First Person Controller walks forward also, is there anyway to set a camera follow just the head of the character as it animates? or would i have to do that in blender? I am new with unity and scripting, so any advice will be helpful, and pls explain clearly thankyou in advance!
Answer by nasapc123 · Oct 01, 2011 at 11:28 PM
well, for the walking forward, you could use Animation.Play("walkcycle"); when ge user presses w, and Animation.Stop("walkcycle"); when the user depresses it. for the following, i would use the script from the standard assets package, i think its called smooth follow??
thank you a lot, but one more quesiton, how should i use SmoothFollow? what do i attach it to? and how do i add it to the standard FirstPersonController?
well, you wil want to attach the smoothfollow to the camera object, but detach the camera from any parent objects first. you will want to make it follow the head bone :)
if the character was exportes as .fbx, then i cant do anything with the bones can i?
the bones will appear as children of the gameobject, so yes you can, just scroll through the children until you find the head bone :)
Your answer
Follow this Question
Related Questions
How to make a mesh into a FirstPerson Character? 2 Answers
Problem with getting the animation on my Character. 1 Answer
A question about unity prefabs and their animations.. 0 Answers
Camera shall stay on face while animating a Character 0 Answers
Blender Rigify import with Top/Bottom only animations, different hips 0 Answers