- Home /
Animating character around terrain on preprogrammed route without players control
I have been using Unity for a few months for my uni course. Excuse me if this is a very daft question but I wanted to know how you can pre-programme a 'character' to move around the scene. I have made a scene in woodlands, I have my FPS player but I want to add in a fox that I have rigged and added some animations to in Maya. The fox has been pulled into Unity and has the animations set up so that when I change the parameters in the animator I can see the different animations such as walk, idle etc.
The issue I am having is that I want the fox to walk around the scene in a preprogrammed route, making sure the animation always stays grounded to the terrain. I have added a Character Controller to the fox so that at the start of the game, he will sit on the terrain so I want the fox to stay grounded to this whilst it does its route around the scene.
Hope this makes sense, I'm very much a newb with C# so please do explain any code example as much as you can so I can try and understand!! :) thank you for any help you can offer me
Your answer
Follow this Question
Related Questions
Why does my character fall to his waist? 2 Answers
Adding a Controller, and setting up animations on a Prefab? 1 Answer
Root motion / How to bake into pose Root Transform Position (x) 0 Answers
Animate character sitting in a chair 1 Answer
The "+" icon in Parameters within the Animator is greyed out, what am I doing wrong? 2 Answers