GTNav 2D – Platformer Pathfinding & Enemy AI


Specifications: ... Physics-accurate jumps, falls and drop-throughs, with the character's body swept ... Flying Chaser: flies around terrain, hovers and dives; approaches low or waits when you ...


by Gitou


Price History +

Enemies that really chase you across platforms: Tilemap baking, physics-accurate jumps, ladders, moving platforms, flying and ranged enemies.

Features:

• Tilemap baking into a navigation graph (ground, one-way platforms, slopes, ladders)

• Physics-accurate jumps, falls and drop-throughs replayed exactly at runtime

• Movement Profiles: per-enemy jump height, speed and size

• Moving platforms (ride, wait at docks), runtime and background rebaking

• 4 enemy behaviours: Ground Chaser, Jump Ambusher, Ranged Shooter, Flying Chaser

• Knockback, stun and attack events for any health system

• INavAgent interface for your own character controller


Specifications:

• Unity 2022.3 LTS and Unity 6 (tested on 2022.3.62f3 and 6000.0.57f1)

• Render pipelines: Built-in and URP (including the 2D Renderer). The package uses no shaders; the demo uses plain sprites.

• Input: the demo works with the Input System package or the legacy Input Manager; the package itself has no input dependency

• No third-party dependencies; pure C#, assembly definitions included

• Terrain must be made of Tilemaps (cells of any size)

• Known limitation: enemies plan jumps with at most one turn in the air

• VFX: none

• Custom shaders: none

• Documentation: Assets/GTNav2D/Documentation (Markdown) and https://gitougt.github.io/gtnav2d/docs/

Enemies that really chase you across platforms.


GTNav 2D bakes your Tilemaps into a navigation graph and moves Rigidbody2D enemies along it: walking, jumping, dropping through one-way platforms, climbing ladders and riding moving platforms. Every jump is validated by simulating the real physics trajectory, and the enemy replays that exact trajectory at runtime — so the jumps the pathfinder plans are the jumps the character makes.


Navigation

• One-click Tilemap baking: ground, one-way platforms and ladders

• Physics-accurate jumps, falls and drop-throughs, with the character's body swept along the arc

• Steered jumps out of narrow pits and around ledges overhead; long jumps from the edge of a platform

• Movement Profiles: each enemy type gets its own jump height, speed and size, and takes its own routes on the same map

• Slopes (45° and 1:2), ladders, one-way platforms

• Moving platforms: enemies wait at docks, ride, pick the best stop and drop onto platforms from above

• Fast A* (about 0.2 ms per search on a 200×100 map), several graphs per scene

• Bake to an asset in the editor, or rebake in the background at runtime for destructible terrain


Enemy behaviours (ready to use)

• Ground Chaser: patrols, notices you, chases across platforms, melee attacks

• Jump Ambusher: keeps its distance, finds a spot and leaps onto you

• Ranged Shooter: finds a spot with a clear shot, keeps its distance, fires straight or lobbed projectiles over cover

• Flying Chaser: flies around terrain, hovers and dives; approaches low or waits when you hide under cover

• Knockback and stun for every enemy; attacks raise events, so it works with any health system

• All behaviours give up cleanly when you are out of reach — no jittering in place


Made for programmers

• Behaviours talk to an INavAgent interface: plug in your own character controller

• Full C# source, XML-documented public API, EditMode and PlayMode tests included

• Scene view tools: nodes, links, jump arcs, path test

• GameObject menu items and presets get a chasing enemy into an empty scene in about 5 minutes


Included

• A main demo and 9 feature scenes (basics, profiles, slopes and one-way platforms, ladders, moving platforms, flying, combat, runtime baking, ranged)

• Documentation: Quick Start, Movement Profiles, Features, API Reference, FAQ

• Online documentation: https://gitougt.github.io/gtnav2d/docs/