Godot genre racing

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot genre racing is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for racing games including vehicle physics (VehicleBody3D, suspension, friction), checkpoint systems (prevent shortcuts), rubber-banding AI (keep races competitive), drifting mechanics (reduce friction, boost on exit), camera feel (FOV increase with speed, motion blur), and UI (spee

How to use this skill

Skill file

NEVER Do (Expert Anti-Patterns)

Physics & Handling

AI & Competition

Visuals & Audio


🛠 Expert Components (scripts/)

Original Expert Patterns

Modular Components


Core Loop

  1. Race: Player controls a vehicle on a track.
  2. Compete: Player overtakes opponents or beats the clock.
  3. Upgrade: Player earns currency/points to buy parts/cars.
  4. Tune: Player adjusts vehicle stats (grip, acceleration).
  5. Master: Player learns track layouts and optimal lines.

Related Skills (build order)

Use the Reference → Related Skills lattice — do not invent skill ids:

  1. Prerequisites — godot-project-foundations, godot-physics-3d, godot-input-handling
  2. Complements — godot-camera-systems, godot-ai-navigation, godot-particles, godot-ui-containers, godot-raycasting-queries
  3. Downstream — godot-save-load-systems, godot-economy-system

Decision Tree — Vehicle Model

| Feel | Choose | MANDATORY |

|------|--------|---------------|

| VehicleBody3D arcade (torque / wheel slip) | Built-in wheels + gravity/friction tweaks | arcade_vehicle_physics.gd |

| Custom suspension / kart crispness | RigidBody3D + RayCast springs | raycast_vehicle_controller.gd (+ raycast_suspension.gd) |

Do not paste a bare VehicleBody3D sample — read the chosen script first. Optional input shim: arcade_vehicle_controller.gd.

Golden Path (script order)

  1. Vehicle — pick physics script above.
  2. Checkpoints / laps — racing_checkpoint.gd → lap_checkpoint_manager.gd / lap_tracker.gd.
  3. AI — spline_track_spawner.gd → spline_ai_controller.gd.
  4. Ghost — ghost_recorder.gd.

Also wire as needed: slipstream_handler.gd, skid_mark_emitter.gd, engine_audio_controller.gd, force_feedback_router.gd, minimap_icon_projector.gd.

Floaty Physics / Feel — Fallback Table

| Symptom | Knob | Where |

|---------|------|-------|

| Car floats / weak stick | Raise gravity_scale (≈2–3×); Fun > raw realism | arcade_vehicle_physics.gd |

| Tips / rolls easily | Lower COM (center_of_mass_mode + offset) | VehicleBody3D / RigidBody3D |

| Ice-skating lateral slip | Raise wheel_friction_slip / normal_friction_slip; lower drift slip only while drifting | arcade_vehicle_physics.gd |

| Raycast kart too bouncy | Tune spring_stiffness / spring_damping / tire_grip | raycast_vehicle_controller.gd, raycast_suspension.gd |

| Bad / rigid camera | Marker3D + lerp follow; never hard-parent to chassis | godot-camera-systems |

| Tunnel vision / no speed read | Scale FOV with speed; optional shake, wind lines, motion blur | Camera3D + Environment; FOV tween on boost |

Advanced Racing Meta-Systems

Do not paste inline DriftBoost/Ghost samples — extend the scripts:

  1. Drift-Boost / Mini-Turbo — MANDATORY: use drift hooks in arcade_vehicle_physics.gd (is_drifting, drift_friction_slip); charge + apply_central_impulse on release; brief Camera FOV tween for boost feel.
  2. Tire-Smoke / skids — MANDATORY: skid_mark_emitter.gd gated by get_skidinfo(); pair with godot-particles — never spawn particles every physics frame.
  3. Replay-Ghost binary — MANDATORY: ghost_recorder.gd for transform serialization; persist via godot-save-load-systems.

MANDATORY for depth beyond decision trees and script catalog: racing-systems-deep.md. Do NOT Load on first-pass wiring — use bundled scripts/ first.

Architecture Overview

1. Vehicle Controller

Handling the physics of movement.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.