Here is the detailed documentation for the Waypoint System, Waypoint, and Waypoint System Editor scripts combined:


1. waypointSystem.cs

Overview:

The waypointSystem script manages a collection of waypoints in a scene and provides utilities for pathfinding, spline creation, and waypoint manipulation. It is central to creating paths for AI vehicles to follow and includes features like shortest pathfinding, waypoint alignment, and path smoothing.

Key Variables:

Functions:

1. CreateSplineFromPath(List\<waypoint> waypointList):

2. GetNearestWaypoint(Vector3 position):

3. GetShortestPath(waypoint start, waypoint goal):