-
Notifications
You must be signed in to change notification settings - Fork 1
Way Point Following: Quick Start
If you haven't already, follow the instructions to install Unity. Afterward, open your Unity Project and import the Way Point Tools Unity package
![Manager Inspector](https://github.com/CUEDOS/Unity/raw/master/bin/Waypoint%20Images/WayPointManager%20Inspector.png)
![Controller Inspector](https://github.com/CUEDOS/Unity/raw/master/bin/Waypoint%20Images/KinematicController%20inspector.png)
The WayPointManager is used to create a path of way points in a scene. To use the way point Manager, attach the WayPointManager script to an empty game object in the scene. Name the game object something which can be used to identify the path you want to create - the way point Tracker will use the name you choose here to find the Manager during play mode. When dealing with only one path in your scene a name like "WayPoints" is suitable.
The WayPointTracker is used to keep track of the next way point on the path. It provides an ease of access link between the way point Manager and a controller. Controllers need only refer to the functions: GetCurrentWayPoint, GetCurrentLookPoint or GetCurrentWayPointData to obtain the relevant information.
This controller is included as an example of how a drone model would utilise the way point framework. We implement a simple controller which moves to a target position with constant speed.