Skip to content

Way Point Following: Quick Start

ConorZAM edited this page Nov 12, 2020 · 4 revisions

Getting Started

If you haven't already, follow the instructions to install Unity. Afterward, open your Unity Project and import the Way Point Tools Unity package

Your scene will require two objects:

The way point Manager, which stores the way point path

Manager Inspector

A drone with a WayPointTracker and KinematicController to track and move towards way points

Controller Inspector

Way Point Manager

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.

Way Point Tracker

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.

Kinematic Controller

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.