- Home /
Cube To Follow Waypoints - Help! Att: Picture
Hello,
I have a cube on my scene. I would like the cube to follow the black line that is on the material from the green, to the red - and to do that I have made some Waypoints for it to follow.
http://olliejones.com/help.png
But, I have no idea how to script (JavaScript) the cube to follow the waypoints. I tried using the AI that Unity have made in their FPS tutorial, but the cube just selects a waypoint at random. I just want to simple (I believe) script that makes my cube follow the waypoints correctly.
Regards, Ollie
Answer by Uriel_96 · Nov 17, 2010 at 09:38 PM
This video may have what you want http://www.youtube.com/watch?v=-5RiMoILHTA
Your answer
Follow this Question
Related Questions
Confused about GameObject and Transform 1 Answer
Rotation not going past 180? 2 Answers
Trouble with raycasting 0 Answers
modifing enemies target inside a radius 1 Answer
Wrong if command 3 Answers