godot-navigation-pathfinding

Implement AI pathfinding and obstacle avoidance for Godot 2D and 3D projects.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/shirulot/codex-skill --skill godot-navigation-pathfinding-shirulot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-navigation-pathfinding
Source: https://github.com/shirulot/codex-skill/tree/main/godot-ai-navigation
Command: npx skills add https://github.com/shirulot/codex-skill --skill godot-navigation-pathfinding-shirulot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill addresses the complexity of implementing robust, performant AI movement in Godot, solving common issues like pathfinding stutters, agent clumping, and inefficient navigation mesh updates.

Core Features & Use Cases

  • Dynamic Navigation: Provides logic for runtime navigation mesh baking and dynamic obstacle avoidance using NavigationServer.
  • Performance Optimization: Includes patterns for memory-efficient path queries and asynchronous baking to prevent frame drops.
  • Use Case: Ideal for developers building RTS, tower defense, or stealth games who need to manage hundreds of agents with complex avoidance, jump links, and terrain-based movement costs.

Quick Start

Use the godot-navigation-pathfinding skill to set up a basic NavigationAgent2D for an enemy character and implement pathfinding logic.

Frequently Asked Questions about godot-navigation-pathfinding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement AI pathfinding for multiple agents in Godot without frame drops?

AI pathfinding in Godot is optimized using asynchronous navigation mesh baking and memory-efficient path queries via NavigationServer to prevent frame drops. This skill provides patterns to manage hundreds of agents with complex avoidance and dynamic obstacle handling.

Why does my Godot NavigationAgent clump together and stutter during movement?

Godot NavigationAgent clumping and pathfinding stutters occur due to inefficient navigation mesh updates and lack of avoidance callbacks. This skill implements dynamic obstacle avoidance and asynchronous baking to ensure smooth, performant agent movement.

Can I use Godot NavigationServer for both 2D and 3D game environments?

Yes, Godot NavigationServer supports both 2D and 3D environments. This skill facilitates managing NavigationServer RIDs, navigation layer masks, and agent movement logic across complex game environments for robust AI pathfinding.

What's the best way to bake navigation meshes dynamically at runtime in Godot?

The best way to bake navigation meshes dynamically at runtime in Godot is through asynchronous baking processes. This skill provides logic for runtime baking and managing navigation layer masks to handle terrain-based movement costs effectively.

Does this AI pathfinding approach support complex features like jump links in Godot?

Yes, this AI pathfinding approach supports jump links and terrain-based movement costs in Godot. It is ideal for RTS, tower defense, or stealth games requiring complex avoidance and management of hundreds of agents.

How do I set up a basic NavigationAgent2D for an enemy character in Godot?

To set up a basic NavigationAgent2D for an enemy character in Godot, use this skill to implement pathfinding logic and integrate with the navigation API. It handles path queries and avoidance callbacks for character movement.