Logo: Godot 3d Gameplay

Godot 3d Gameplay

Communautéit
EL4CTEO
godot-3d-gameplay

Building 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building.

Iwwersiicht

EditeurEL4CTEO
Repositorygodot-skills
Skill-Nummgodot-3d-gameplay
Stären
60
Forks
6
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    EL4CTEO huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Godot 3d Gameplay an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-3d-gameplay
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-3d-gameplay .claude/skills/godot-3d-gameplay
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Godot 3d Gameplay an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Godot 3d Gameplay automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Godot 3d Gameplay net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

3D Gameplay (4.7)

This skill covers how a 3D game plays: controllers, cameras, levels. Rendering is godot-3d-rendering, bodies and raycasts are godot-physics (it has the first-person controller), animation blending is godot-animation.

Scene layout that scales

Player (CharacterBody3D)            # movement, script
├─ CollisionShape3D (capsule)
├─ Model (Node3D)                   # rotate this to face movement, not the body
│  └─ character.glb (AnimationTree lives here)
└─ CameraRig (Node3D, top_level)    # follows the player in _process, owns the yaw
   └─ Pitch (Node3D)
      └─ SpringArm3D                # camera collision
         └─ Camera3D
  • top_level = true on the rig keeps the camera from inheriting the body's rotation and physics jitter. Follow player.get_global_transform_interpolated() when physics interpolation is on.
  • Turn the Model, not the body, so the collider and camera stay stable. Rotate with lerp_angle or Basis.slerp.
  • Keep gameplay in the root script and expose @export tuning (speed, acceleration, jump, sensitivity).

Camera-relative movement (third person)

input := Input.get_vector("move_left", "move_right", "move_forward", "move_back") then dir := (camera_yaw_basis * Vector3(input.x, 0, input.y)).normalized(). Use the rig's yaw basis only (no pitch) so looking down doesn't slow you. Accelerate with move_toward for grip, lerp toward zero for slide.

Cameras

StyleRecipe
Third-person orbityaw on the rig, pitch on a child (clamp −70°..60°), SpringArm3D (spring_length, margin, sphere shape radius 0.2–0.3)
Over-the-shoulder aimtween the spring length and Camera3D.h_offset, lower fov
Lock-onthe rig looks at the midpoint of the player and target; the player strafes facing the target
Top-down / ARPGfixed pitch −50..−60°, smooth follow, mouse picking for aiming (see godot-physics)
Isometric / tacticsprojection = PROJECTION_ORTHOGONAL, size = zoom, rotate 45° yaw, ~−35° pitch
RTSthe rig moves on XZ (WASD, edge pan), the wheel changes height or size, clamp to map bounds
Rail / cinematicPathFollow3D on a Path3D with progress driven by a tween or AnimationPlayer
  • SpringArm3D must not hit the player: exclude it with add_excluded_object(player.get_rid()) or leave the player layer out of collision_mask.
  • Mouse look in _unhandled_input (InputEventMouseMotion.relative), stick look in _process (multiply by delta). Don't mix them in one place.
  • Several cameras: call make_current() on the one you want. Blending between cameras needs a tween of one camera's transform (or the Phantom Camera addon).
  • Screen shake and FOV kicks: godot-game-feel.

Levels

GridMap (modular 3D tiles):

  1. Build a scene with one MeshInstance3D per tile, each with a StaticBody3D + CollisionShape3D child (and an optional NavigationRegion3D). Then use Scene → Export As → MeshLibrary. The 4.7 MeshLibrary editor (bottom panel) edits items, previews and undo.
  2. GridMap.mesh_library, cell_size = tile size, and the cell_center_* flags to match pivots.
  3. Code: set_cell_item(Vector3i, item, orientation) with orientation = get_orthogonal_index_from_basis(basis), get_cell_item, get_used_cells_by_item, local_to_map/map_to_local.
  4. Navigation: bake_navigation = true uses the item navmeshes, or bake a NavigationRegion3D over the GridMap (godot-navigation-ai). CSG (CSGBox3D, CSGCombiner3D, CSGPolygon3D, operation = union/subtraction/intersection) is for blockout and prototypes. It's slow to rebuild at runtime. For shipping, call bake_static_mesh() + bake_collision_shape() (or the editor's CSG → Bake Mesh / Collision). use_collision on the root only. 4.7 adds autosmooth/smoothing_angle. Modular kits from Blender (.glb): name suffixes create nodes on import: -col (mesh + static collision), -colonly (collision only), -convcolonly (convex), -navmesh, -rigid, -noimp (skip). Prefer -colonly boxes over trimesh colliders for performance.

Gameplay objects

  • Interactables: an interact(actor) method plus group interactable. Find them with a ShapeCast3D or RayCast3D from the camera (godot-physics has the prompt code). Show a Label3D or a screen-space prompt.
  • Pickups/triggers: Area3D (body_entered), with masks set so only the player layer triggers them.
  • Doors, lifts, moving platforms: AnimatableBody3D moved by AnimationPlayer/tween or PathFollow3D so riders get carried.
  • Spawners: Marker3D points, PackedScene.instantiate(), then add_child to a level container before setting global_position, or set position relative to the container. Pool bullets and debris (godot-performance).
  • Checkpoints/respawn: store a Transform3D, teleport with reset_physics_interpolation().
  • World-space UI: Label3D/Sprite3D with billboard, or 2D UI positioned with camera.unproject_position(p) (hide when camera.is_position_behind(p)).
  • Vehicles: VehicleBody3D + VehicleWheel3D (arcade cars), or a RigidBody3D with raycast suspension for more control.

Big worlds

  • Visibility ranges (GeometryInstance3D.visibility_range_begin/end + fade) for HLOD; OccluderInstance3D for indoor culling; automatic mesh LOD is on by default for imported meshes.
  • Precision: past ~10 km from the origin, jitter appears. Either shift the world origin (move everything back when the player passes a threshold) or use a double-precision engine build.
  • Stream areas with ResourceLoader.load_threaded_request() (godot-performance). Terrain: the Terrain3D addon (1.1, Godot 4.5+) or a heightmap mesh with HeightMapShape3D (godot-procedural).

Third-person controller and camera rig, lock-on, top-down aiming, RTS camera, GridMap painting, CSG baking, rail camera and health bars (compiled by the tests): references/patterns.md

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Godot 3d Gameplay?

Building 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building.

Firwat Godot 3d Gameplay op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Godot 3d Gameplay besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Godot 3d Gameplay an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-3d-gameplay an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Godot 3d Gameplay benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Godot 3d Gameplay benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Godot 3d Gameplay domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Godot 3d Gameplay gratis?

Jo. EL4CTEO huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇