This project explores a wayfinding system with a dynamic "tracker" object. A script controls the tracker, a primitive game object, positioned ahead of the main object (which has a rigidbody for physics and a box collider). The tracker follows a path defined by a "course" with waypoints.

The core script utilizes several functions:

  • It ensures the tracker stays ahead of the main object.

  • It retrieves waypoints from the course object and guides the tracker along the path.

  • The tracker constantly adjusts its position and rotation to look at and move towards the next waypoint, creating a smoother path for the main object to follow.

  • Once reaching the final waypoint, the tracker loops back to the beginning for continuous following.

This project showcases a more advanced approach to wayfinding compared to a simple waypoint system, with the potential for future improvements like obstacle avoidance.

  • Developer

  • C#

  • Unity