- Home /
Question by
greg1992 · Feb 07, 2013 at 08:41 AM ·
waypoint system
Waypoints C# unity 3d
Hello all i'm trying to make a waypoint system for a tower defense game using C# and unity. I have made a waypoint code, however the game object i have attached this too is not moving to the waypoints.
http://forum.unity3d.com/threads/54678-A-Waypoint-Script-Explained-in-Super-Detail!
stole the code from that forum to get a understanding of how things work, however i can't seem to to work out how to get a enemy to move from point to point.
Comment
Answer by Berenger · Feb 07, 2013 at 12:20 PM
If the gameobject isn't moving toward the first waypoint, then you didn't assigned it properly in the inspector (array Waypoints).
If it doesn't go to the second waypoint, that's normal. Add a rigidbody, disable gravity and enable isKinematic.
Your answer
