- Home /
Making characters move to destination with Maximo Animations
I'am attempting to move some NPC characters between desintations (objects) and also use maximo animations like walk, run etc
When I run my code, the character goes to the destination but there is no animation.
void Start()
{
agent = gameObject.GetComponent<NavMeshAgent>();
GetASM().SetTransitionHandler(this);
controller = GetComponent<CharacterController>();
asm = GetASM();
asm.ChangeState("move");
agent.destination = destination[currentWaypoint].position;
}
Comment
Answer by cmonroy · Oct 30, 2014 at 02:10 PM
Either you need setup the animations in your code or setup the mecanim parameters in your code, as the speed and rotation are not being passed.
Your answer
Follow this Question
Related Questions
Non Character movement from A to B 2 Answers
Blender Eye Texture Offset Animations in Unity 1 Answer
Rotating arm with Animation Event 1 Answer
how to switch 2d characters animation? 1 Answer
Animation problem 0 Answers