The question is answered, right answer was accepted
Ethan unable to leave a position on the scene
My scene consists of the third person model Ethan on a plane. Ethan has two scripts attached: Third Person User Control and Third Person Character. When the play buttom is pressed, Ethan responds to wasd and direction keys by playing its running and jumping animations on the same position on the scene without actually moving. What can I do to correct this?
Answer by CosmoM · Nov 02, 2015 at 02:54 AM
In the Inspector, make sure that under Animator the box "Apply root motion" is checked. The scripts do not control Ethan directly but only his animations, so you have to tell Unity to move him correspondingly in this way.
I do not think i have a checkbox for "Apply root motion" Would you like to see more pictures of the Inspector?
Oh I see, it's already set to "Handled by script", which should also be fine... Hmm. Can you show Ethan's Rigidbody component, with "Constraints" expanded?
Ah, there's your problem. :-) "Is$$anonymous$$inematic" should be off.
If I uncheck its kinematic, I am faced with the same problem but in a different position. I also get a lot of warnings in the console saying "Animator has not been initialized" and " The reference script on this behaviour is missing"
Answer by alfredoszrz · Nov 04, 2015 at 04:41 PM
Fix it! The problem was that I was using the Ethan's Model, what I should have been using is the Ethan's prefab.
Follow this Question
Related Questions
Character Will Not Move from Spot (At All) 0 Answers
MoveTowards is curving for no reason 0 Answers
How to make character look at movement direction? 1 Answer
First person movement with character controller does not detect ground properly 0 Answers
how would you go about implementing terraria controls in unity? 0 Answers