2 components that give you more freedom in pathfinding scenarios. Customize your agents to behave the way you want. Create planar areas and link them in the 3D space.
An editor extension to create and edit polygons is included. Define any 2D navigable area using a set of polygons.
Update your navigation area at runtime with the help of the polygon building methods provided.
Package main contents:
- NavigationAgent: Component that gets the path to the set target and provides an interface to the path for other components.
- NavigationArea: Component that will store the definition of the navigable areas and generate paths as requested.
- NavigationAreaEditor: Provides the interface to edit link points in the NavigationArea component.
- Polygon: This class defines a simple polygon and provides simple operations for it.
- PolygonBuilder: Static class that provides complex operations for many polygons including clipping, mesh to polygons and polygons to mesh conversions, and basic boolean operations.
- PolygonEditor: Editor window that provides the interface for polygon building and editing.
- PolygonSet: ScriptableObject used to store sets of polygons as assets.
- Math2D: Static class that provides useful operations for Vector2.
The package also includes:
- Demo Scene (With an area, an agent and some PolygonSets)
- Controller script template
Video tutorials in the AdVd YouTube channel.