Godot 3d Gameplayのロゴ

Godot 3d Gameplay

コミュニティ
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.

概要

公開者EL4CTEO
リポジトリgodot-skills
スキル名godot-3d-gameplay
スター
60
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EL4CTEOがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Godot 3d Gameplay」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-3d-gameplay
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGodot 3d Gameplayを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGodot 3d Gameplayを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Godot 3d Gameplayは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでGodot 3d Gameplayを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Godot 3d Gameplayはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGodot 3d Gameplayをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-3d-gameplayを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Godot 3d Gameplayを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Godot 3d Gameplayで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGodot 3d Gameplayを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Godot 3d Gameplay」は無料ですか?

はい。EL4CTEOがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇