godot-navigation-pathfinding
БесплатноЗапускает вложенные скриптыНе проверенExpert blueprint for AI pathfinding (tower defense, RTS, stealth) using NavigationAgent2D/3D, NavigationServer, avoidance, and dynamic navigation mesh…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
NEVER Do in Navigation & Pathfinding
- NEVER set
target_positionbefore awaiting physics frame — NavigationServer not ready in_ready()? Path fails silently. MUSTcall_deferred()thenawait get_tree().physics_frame. - NEVER use
NavigationRegion2D.bake_navigation_polygon()at runtime — Synchronous baking freezes game for 100+ ms. UseNavigationServer.bake_from_source_geometry_data_async()for stutter-free updates. - NEVER forget to check
is_navigation_finished()— Callingget_next_path_position()after reaching target = stale path, AI walks to old position. - NEVER use
avoidance_enabledwithout setting radius — Default radius = 0, agent passes through others. Setnav_agent.radius = collision_shape.radiusfor proper avoidance. - NEVER poll
target_positionevery frame for chase AI — Setting target 60x/sec = path recalculation spam. Use timer (0.2s intervals) or distance threshold for updates. - NEVER assume path exists — Target unreachable (blocked by walls)?
get_next_path_position()returns invalid. Checkis_target_reachable()or validate path length. - NEVER use heavy node-based navigation for thousands of simple entities — Use
NavigationServer3D/2DRIDs directly to bypass node overhead. - NEVER call
get_path()every frame — Usequery_path()with reusedNavigationPathQueryResultobjects to prevent massive heap allocation and GC pressure. - NEVER leave 'enter_cost' at 0 for high-penalty areas — Use costs to make AI prefer logical paths (roads over water) instead of just shortest geometric distance.
- NEVER ignore
agent_set_avoidance_callback— Always use the callback for safe velocity computation to avoid synchronization issues and "jittery" movement.
Decision Tree → Scripts
MANDATORY for the chosen path. Do NOT Load editor-intro / Official Docs bootstrap recipes from this skill body (use Reference links when you need first-time region setup).
| Need | Script |
|---|---|
| Runtime / procedural bake without hitch | MANDATORY async_dynamic_baking.gd |
| Agent stuck / jitter recovery | MANDATORY agent_stuck_detection.gd |
| High-count RVO without nodes | MANDATORY low_level_avoidance.gd |
| Moving platforms / dynamic regions | dynamic_nav_manager.gd |
| RID-only maps/regions | server_navigation_setup.gd |
| Reused path query objects | memory_optimized_queries.gd |
| Terrain enter/travel costs | terrain_cost_manager.gd |
| Projectiles as RVO obstacles | moving_obstacle_server.gd |
| Links (jump/teleport/elevator) | nav_link_traversal.gd |
| Walk / fly / swim layers | layer_mask_navigation.gd |
| Crowd formation offsets | group_avoidance_formations.gd |
| Server RVO crowd agent (node-less) | crowd_agent_3d.gd |
| Dynamic navmesh carve (impact holes) | nav_mesh_carver_3d.gd |
| Bake-time benchmark | navmesh_profiler.gd |
| Smart agent wrapper | smart_navigation_agent.gd |
Chase / Retarget Rule (never contradict NEVER)
Do not assign target_position every physics frame. Retarget on a timer (~0.2s) or when the chased body moves beyond a distance threshold:
# Threshold retarget — not per-frame path spam
const RETARGET_DIST := 1.5
var _last_target: Vector3
func _physics_process(_delta: float) -> void:
var desired := prey.global_position
if desired.distance_to(_last_target) >= RETARGET_DIST:
nav_agent.target_position = desired
_last_target = desired
if nav_agent.is_navigation_finished():
return
var next := nav_agent.get_next_path_position()
velocity = (next - global_position).normalized() * speed
move_and_slide()
Available Scripts
async_dynamic_baking.gd
bake_from_source_geometry_data_async — parse on main, bake off-thread.
agent_stuck_detection.gd
Distance-over-time stall detection and recovery.
low_level_avoidance.gd
Server-side RVO agents + avoidance callbacks.
dynamic_nav_manager.gd
Runtime navmesh updates for moving platforms.
server_navigation_setup.gd
Node-less maps/regions via NavigationServer RIDs.
memory_optimized_queries.gd
Reuse path query parameter/result objects.
terrain_cost_manager.gd
enter_cost / `travel_cost
Установить godot-navigation-pathfinding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл godot-navigation-pathfinding?
Expert blueprint for AI pathfinding (tower defense, RTS, stealth) using NavigationAgent2D/3D, NavigationServer, avoidance, and dynamic navigation mesh generation. Use when implementing enemy AI, NPC movement, or obstacle avoidance. Keywords NavigationAgent2D, NavigationRegion2D, pathfinding, NavigationServer, avoidance, baking, NavigationObstacle.
Как установить скилл godot-navigation-pathfinding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-navigation-pathfinding запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic