/godot-agent-skills:godot-3d-gameplayfrom godot-agent-skills
Builds 3D game controllers, cameras, and levels in Godot 4.7. Covers third-person/orbit cameras with SpringArm3D, camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap+MeshLibrary levels, CSG blockout, Path3D rails, interactables, spawners, world-space UI, and LOD.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.lerp_angle or Basis.slerp.@export tuning (speed, acceleration, jump, sensitivity).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.
| Style | Recipe |
|---|---|
| Third-person orbit | yaw on the rig, pitch on a child (clamp −70°..60°), SpringArm3D (spring_length, margin, sphere shape radius 0.2–0.3) |
| Over-the-shoulder aim | tween the spring length and Camera3D.h_offset, lower fov |
| Lock-on | the rig looks at the midpoint of the player and target; the player strafes facing the target |
| Top-down / ARPG | fixed pitch −50..−60°, smooth follow, mouse picking for aiming (see godot-physics) |
| Isometric / tactics | projection = PROJECTION_ORTHOGONAL, size = zoom, rotate 45° yaw, ~−35° pitch |
| RTS | the rig moves on XZ (WASD, edge pan), the wheel changes height or size, clamp to map bounds |
| Rail / cinematic | PathFollow3D 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._unhandled_input (InputEventMouseMotion.relative), stick look in _process (multiply by delta). Don't mix them in one place.make_current() on the one you want. Blending between cameras needs a tween of one camera's transform (or the Phantom Camera addon).godot-game-feel.GridMap (modular 3D tiles):
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.GridMap.mesh_library, cell_size = tile size, and the cell_center_* flags to match pivots.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.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.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.Area3D (body_entered), with masks set so only the player layer triggers them.AnimatableBody3D moved by AnimationPlayer/tween or PathFollow3D so riders get carried.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).Transform3D, teleport with reset_physics_interpolation().Label3D/Sprite3D with billboard, or 2D UI positioned with camera.unproject_position(p) (hide when camera.is_position_behind(p)).VehicleBody3D + VehicleWheel3D (arcade cars), or a RigidBody3D with raycast suspension for more control.GeometryInstance3D.visibility_range_begin/end + fade) for HLOD; OccluderInstance3D for indoor culling; automatic mesh LOD is on by default for imported meshes.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
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot, 3d-gameplay, camera-controller, level-building, player-controller
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-rendering3D look in Godot 4.7 - renderer choice (Forward+/Mobile/Compatibility matrix), Environment (AgX, glow, fog, SSAO/SSR/SDFGI), lights incl. AreaLight3D, GI (SDFGI, VoxelGI, LightmapGI), HDR output, materials, glTF/Blender import suffixes, LOD and occlusion culling. Use for 3D scenes, lighting, materials, model import or visual quality./godot-addonsFinding, vetting, installing and maintaining Godot 4.7 addons - the in-editor Asset Store, editor plugins vs GDExtensions vs C# addons, compatibility and platform-binary checks, enabling plugins, versioning addons in git, optional dependencies, and a curated 4.7 list (LimboAI, Beehave, Dialogue Manager, Phantom Camera, Terrain3D, GodotSteam, billing, Mod Loader). Use when adding or fixing plugins./godot-animationAnimation in Godot 4.7 - AnimationPlayer and libraries, AnimationTree (state machines, blend spaces with sync_mode, one-shots, conditions), root motion, method/audio tracks, Tween recipes incl. tween_await (4.7), skeletons, the 4.6 IK framework (TwoBoneIK3D, FABRIK3D, CCDIK3D, SplineIK3D), LookAt/bone constraints, procedural animation. Use for character animation, cutscenes, UI motion or IK./godot-architectureStructure Godot 4.7 projects that scale - feature-based folders, scene composition and components, when to use autoloads, event bus, custom Resources as data, state machines, scene switching and loading screens, save/load (safe formats), groups and dependency injection, mixed GDScript + C# projects. Use when starting a project, adding a system, or refactoring Godot code./godot-audioAudio in Godot 4.7 - bus layout and effects, volume in linear vs dB, SFX players with polyphony and randomization, 3D positional audio (attenuation, doppler, Area reverb buses), adaptive music with AudioStreamInteractive/Synchronized/Playlist, procedural audio and capture, import/loop settings, web playback type. Use for sound effects, music systems, mixers or audio settings menus.Other plugins' skills for the same job