[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KRCNMNRBSWH4JYR1CB1Z3W":3,"skill-same:01M6KRCNMNRBSWH4JYR1CB1Z3W":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6KRCNMNRBSWH4JYR1CB1Z3W","phantom-camera",null,"Use when using the Phantom Camera addon — PhantomCamera2D\u002F3D with priority-based switching, follow and look-at modes, and tween transitions","jame581\u002FGodotPrompter","jame581","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21112138?v=4","01M6KR3KEQ9Z30WVJRR2E2ZVXE","Jan Mesarč","01M6KR3KJVRMPDSMASQPBCBVK3",964,"MIT","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fphantom-camera\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"phantom camera","camera","phantom","3D","modes","use","switching","with","transitions","at","look","when","2026-11-10 10:12:30",false,"---\nname: phantom-camera\ndescription: Use when using the Phantom Camera addon — PhantomCamera2D\u002F3D with priority-based switching, follow and look-at modes, and tween transitions\n---\n\n# Phantom Camera\n\n> **Related skills:** **camera-system** for hand-rolled camera patterns, **tween-animation** for the easing concepts the transitions build on.\n\n> **Addon:** Phantom Camera · version `v0.11.0.4` · Godot 4.4+ · MIT · source: https:\u002F\u002Fgithub.com\u002Framokz\u002Fphantom-camera · nodes are GDScript, plus an official C# wrapper API (`namespace PhantomCamera`) shipped as source `.cs` files in the addon. **Pre-1.0:** minor versions may break API.\n\n> **Godot 4.8:** not yet confirmed by the addon. Issue [#694](https:\u002F\u002Fgithub.com\u002Framokz\u002Fphantom-camera\u002Fissues\u002F694) (open) reports the plugin not loading on 4.8-beta1; v0.11.0.4 shipped a fix for it, after which the maintainer could not reproduce the failure (checked 2026-11-12).\n\n---\n\n## 1. When to use Phantom Camera vs. `camera-system`\n\n| Approach | Best for |\n|---|---|\n| Hand-rolled (`camera-system` skill) | One camera, simple follow\u002Fshake, no addon dependency |\n| **Phantom Camera** | Multiple camera \"shots\" that need priority-based switching, dead-zone\u002Fgroup\u002Fpath\u002Fthird-person follow logic, and smooth resource-driven tweens between them — Cinemachine-style workflow |\n\nReach for Phantom Camera when a scene needs several distinct camera behaviors (gameplay follow, a\ncutscene framing, a boss-fight group shot) that swap automatically based on priority, rather than one\nscript juggling every case. It replaces the `Camera2D`\u002F`Camera3D` positioning logic itself — you still\nkeep exactly one real `Camera2D`\u002F`Camera3D` per viewport; Phantom Camera nodes never render anything on\ntheir own.\n\n---\n\n## 2. Install & setup\n\n**Asset Library (recommended):** Godot AssetLib → search \"Phantom Camera\" → Download (select only the\n`phantom_camera` directory) → **Project → Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8) → enable it.\n\n**GitHub zip:** extract `addons\u002Fphantom_camera\u002F` into the project root, then enable the plugin the same\nway.\n\nEnabling the plugin auto-registers a `PhantomCameraManager` autoload singleton; since v0.11.0.4 it no\nlonger restarts the editor (older versions did). No manual autoload setup is needed. If an older\nversion reports a missing `PhantomCameraManager` after enabling, update to v0.11.0.4 (the #694 fix).\nSix custom node types become available in the \"Create New Node\" dialog: `PhantomCamera2D`, `PhantomCamera3D`, `PhantomCameraHost`, `PhantomCameraNoiseEmitter2D`,\n`PhantomCameraNoiseEmitter3D`, and `PhantomCameraTweenDirector`.\n\n**C# projects:** the addon ships its official wrapper as plain `.cs` source files under\n`addons\u002Fphantom_camera\u002Fscripts\u002F**` (`namespace PhantomCamera`) — no NuGet package to add. A\nC#-enabled Godot project (one with its own generated `.csproj`, `Godot.NET.Sdk`) picks these up\nautomatically once the addon folder is present; `using PhantomCamera;` is then enough (§3–§7).\n\n---\n\n## 3. Host + camera model\n\nTwo node kinds work together:\n\n- **`PhantomCameraHost`** — add it **as a child of your real `Camera2D`\u002F`Camera3D`** (not the other way\n  around). It reads the highest-priority `PhantomCamera2D`\u002F`3D` in the scene and drives the real\n  camera's transform every frame. Only the first `PhantomCameraHost` child of a given camera is used.\n- **`PhantomCamera2D`** \u002F **`PhantomCamera3D`** — placed anywhere else in the scene tree (siblings of\n  the player, inside trigger areas, cutscene rigs). Any number can exist; each one describes a candidate\n  \"shot\" via `priority`, a follow mode, and (3D only) a look-at mode. They render nothing themselves.\n\n```gdscript\n# Scene tree:\n# Camera2D (or Camera3D)\n#   └─ PhantomCameraHost\n# Player (CharacterBody2D)\n#   └─ PhantomCamera2D   (priority 0, follow_mode = SIMPLE, follow_target = Player)\n# BossArena\n#   └─ PhantomCamera2D   (priority 10, follow_mode = GROUP, follow_targets = [Player, Boss])\n```\n\n```gdscript\n# CameraRig.gd — on the Camera2D\u002FCamera3D\nextends Camera2D\n\n@onready var host: PhantomCameraHost = $PhantomCameraHost\n\nfunc _ready() -> void:\n    # host.camera_2d \u002F host.camera_3d are populated automatically from get_parent()\n    var active := host.get_active_pcam()\n    print(\"Active PCam: \", active.name if active else \"none\")\n```\n\n```csharp\n\u002F\u002F CameraRig.cs — on the Camera2D\u002FCamera3D\nusing PhantomCamera;\n\npublic partial class CameraRig : Camera2D\n{\n    private PhantomCameraHost _host;\n\n    public override void _Ready()\n    {\n        \u002F\u002F Host.Camera2D \u002F Host.Camera3D are populated automatically from GetParent()\n        _host = GetNode\u003CNode>(\"PhantomCameraHost\").AsPhantomCameraHost();\n        var active = _host.GetActivePhantomCamera();\n        GD.Print(\"Active PCam: \", active is PhantomCamera2D p ? p.Node2D.Name.ToString() : \"none\");\n    }\n}\n```\n\n`PhantomCameraHost.interpolation_mode` (C#: `InterpolationMode`, enum `Auto`\u002F`Idle`\u002F`Physics`\u002F`Manual`)\ncontrols when the Host updates the real camera:\n`AUTO` (default — picks physics or idle based on the active PCam's target), `IDLE`, `PHYSICS`, or\n`MANUAL` (call `host.process(delta)` yourself each tick).\n\n`host_layers` (render-layer flags: 2D on the Host and `PhantomCamera2D`, 3D on `PhantomCamera3D`) gate which PCams\na given Host will consider — a PCam is only eligible if its `host_layers` bitmask overlaps the Host's.\n\n---\n\n## 4. Priority-based switching\n\nEvery `PhantomCamera2D`\u002F`3D` has `priority: int = 0`. The `PhantomCameraHost` attached to the scene's\nreal camera always follows the highest-priority PCam that shares a `host_layers` bit with it. Change\n`priority` at runtime with `set_priority(value)` \u002F read with `get_priority()` — values are clamped to\n`>= 0`.\n\n```gdscript\n# TriggerArea.gd — raise priority while the player is inside, restore on exit\nextends Area2D\n\n@export var area_pcam: PhantomCamera2D\n\nfunc _ready() -> void:\n    area_entered.connect(_on_entered)\n    area_exited.connect(_on_exited)\n\nfunc _on_entered(area: Area2D) -> void:\n    if area.get_parent() is CharacterBody2D:\n        area_pcam.set_priority(20)\n\nfunc _on_exited(area: Area2D) -> void:\n    if area.get_parent() is CharacterBody2D:\n        area_pcam.set_priority(0)\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class TriggerArea : Area2D\n{\n    [Export] private Node2D _areaPCamNode;\n    private PhantomCamera2D _areaPCam;\n\n    public override void _Ready()\n    {\n        _areaPCam = _areaPCamNode.AsPhantomCamera2D();\n        AreaEntered += a => { if (a.GetParent() is CharacterBody2D) _areaPCam.Priority = 20; };\n        AreaExited  += a => { if (a.GetParent() is CharacterBody2D) _areaPCam.Priority = 0; };\n    }\n}\n```\n\nUseful events on each PCam wrapper: `BecameActive`, `BecameInactive`, `TweenStarted`, `IsTweening`\n(every frame while transitioning), `TweenInterrupted` (a higher-priority PCam preempted this tween —\nargument is the interrupting node), `TweenCompleted` — subscribe with `+=`, same names as the GDScript\nsignals in PascalCase.\n\n`priority_override: bool` is an editor-only \"force preview\" toggle for quickly previewing a shot without\ntouching `priority`; it's disabled automatically in exported builds — don't use it for gameplay logic.\n\n---\n\n## 5. Follow modes\n\n`PhantomCamera2D`\u002F`PhantomCamera3D` follow a target through the `FollowMode` enum: `GLUED`, `SIMPLE`, `GROUP`, `PATH`, `FRAMED`, and `THIRD_PERSON` (3D only). The reference covers each mode's properties, GDScript and C# setup, `GROUP` auto-reframe, and the follow options `follow_axis_lock`, `rotate_with_target` and `lookahead` (both 2D only), plus `is_following()` and `teleport_position()`.\n\n> See [references\u002Ffollow-modes.md](references\u002Ffollow-modes.md) for the mode table, setup examples, and the follow options.\n\n---\n\n## 6. Look-at modes (3D only)\n\n`PhantomCamera2D` has no look-at system — only `rotate_with_target` (§5). `PhantomCamera3D` adds:\n\n```gdscript\nenum LookAtMode { NONE = 0, MIMIC = 1, SIMPLE = 2, GROUP = 3 }\n```\n\n| Mode | Behavior |\n|---|---|\n| `MIMIC` | Copies the target's rotation directly. |\n| `SIMPLE` | Looks straight at `look_at_target` (single `Node3D`). |\n| `GROUP` | Looks at the centroid of `look_at_targets: Array[Node3D]`. |\n\n```gdscript\nextends PhantomCamera3D\n\nfunc _ready() -> void:\n    look_at_mode = LookAtMode.SIMPLE\n    look_at_target = get_node(\"..\u002FBoss\")\n    look_at_damping = true\n    look_at_damping_value = 0.25  # single scalar, not per-axis\n    up_target = get_node(\"..\u002FGroundNormalMarker\")  # overrides `up` continuously\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class BossLookAtSetup : Node\n{\n    [Export] private Node3D _pCamNode; \u002F\u002F has a PhantomCamera3D node\u002Fscript attached\n    [Export] private Node3D _boss;\n    [Export] private Node3D _groundNormalMarker;\n\n    public override void _Ready()\n    {\n        \u002F\u002F LookAtMode has no wrapper setter (getter-only) — set it on the underlying node.\n        _pCamNode.Set(\"look_at_mode\", (int)LookAtMode.Simple);\n\n        var pCam = _pCamNode.AsPhantomCamera3D();\n        pCam.LookAtTarget = _boss;\n        pCam.LookAtDamping = true;\n        pCam.LookAtDampingValue = 0.25f; \u002F\u002F single scalar, not per-axis\n        pCam.UpTarget = _groundNormalMarker;\n    }\n}\n```\n\n**Gotcha (from the addon's own runtime warning):** combining a non-`NONE` `follow_mode` with a\nnon-`NONE` `look_at_mode` on the same `PhantomCamera3D` prints \"Using both Look At and Follow Mode on\nthe same PCam3D has not been fully tested yet, proceed with caution!\" — treat that combination as\nexperimental and verify it manually before shipping.\n\n---\n\n## 7. Tweening between cameras\n\nEach PCam owns a `tween_resource: PhantomCameraTween` (a `Resource` — share one `.tres` across several\nPCams to reuse timing, or leave each with its own default instance):\n\n```gdscript\nenum TransitionType {\n    LINEAR = 0, SINE = 1, QUINT = 2, QUART = 3, QUAD = 4, EXPO = 5,\n    ELASTIC = 6, CUBIC = 7, CIRC = 8, BOUNCE = 9, BACK = 10,\n}\nenum EaseType { EASE_IN = 0, EASE_OUT = 1, EASE_IN_OUT = 2, EASE_OUT_IN = 3 }\n\n@export var duration: float = 1.0\n@export var transition: TransitionType = TransitionType.LINEAR\n@export var ease: EaseType = EaseType.EASE_IN_OUT\n```\n\nThese map 1:1 to Godot's built-in `Tween.TransitionType` \u002F `Tween.EaseType` names (minus the\n`TRANS_`\u002F`EASE_` prefixes) — see `tween-animation` for what each curve looks like.\n\n```gdscript\n# Cutscene PCam: slow, elastic-eased transition when it takes priority\nextends PhantomCamera3D\n\nfunc _ready() -> void:\n    tween_resource = PhantomCameraTween.new()\n    tween_duration = 1.5          # passthrough — writes tween_resource.duration\n    # TransitionType\u002FEaseType live on PhantomCameraTween — qualify them:\n    tween_transition = PhantomCameraTween.TransitionType.ELASTIC\n    tween_ease = PhantomCameraTween.EaseType.EASE_OUT\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class CutsceneCamSetup : Node\n{\n    [Export] private Node3D _pCamNode; \u002F\u002F has a PhantomCamera3D node\u002Fscript attached\n\n    public override void _Ready()\n    {\n        var pCam = _pCamNode.AsPhantomCamera3D();\n        pCam.TweenResource = PhantomCameraTween.New();\n        pCam.TweenDuration = 1.5f;   \u002F\u002F passthrough — writes TweenResource.Duration\n        pCam.TweenTransition = TransitionType.Elastic;\n        pCam.TweenEase = EaseType.EaseOut;\n    }\n}\n```\n\n`tween_on_load: bool = true` — if this PCam is already the highest-priority one when it's instantiated\nat runtime, it tweens the camera into place on load; set `false` to cut instantly instead. If\n`tween_resource` is `null`, `get_tween_duration()` returns `0.0` (instant cut).\n\n---\n\n## Implementation checklist\n\n- [ ] Exactly one `PhantomCameraHost` per real `Camera2D`\u002F`Camera3D`, added **as its child**\n- [ ] Every `PhantomCamera2D`\u002F`3D` shares a `host_layers` bit with the Host that should track it\n- [ ] Priority changes use `set_priority()` or the `priority` property (both route through the setter, which notifies the Host)\n- [ ] `follow_target` \u002F `follow_targets` assigned before relying on `is_following()`\n- [ ] `GROUP` follow mode uses `follow_targets` (array), not `follow_target` (single node)\n- [ ] 3D `THIRD_PERSON` rotation setters (`set_third_person_rotation`, `set_third_person_rotation_degrees`, `set_third_person_quaternion`) guard on `follow_mode == THIRD_PERSON` and no-op with a printed error otherwise — `set_follow_distance`\u002F`set_spring_length`\u002F`set_collision_mask(_value)`\u002F`set_shape` have **no** such guard and print nothing\n- [ ] Combined `follow_mode` + `look_at_mode` on one `PhantomCamera3D` tested manually (addon marks this untested)\n- [ ] `tween_resource` shared deliberately (same `.tres`) when multiple PCams should transition identically\n- [ ] C# obtains wrappers via `AsPhantomCamera2D()`\u002F`AsPhantomCamera3D()`\u002F`AsPhantomCameraHost()`\u002F`AsPhantomCameraTween()` — they are plain classes wrapping the node, **not** `Node` subclasses, so never `class MyCam : PhantomCamera2D`\n- [ ] C# enum names: only `FollowMode`\u002F`FollowLockAxis` are dimension-suffixed (`FollowMode2D`, `FollowLockAxis3D`); `LookAtMode`, `TransitionType`, `EaseType`, `InterpolationMode` are not\n- [ ] `FollowMode`\u002F`LookAtMode` are getter-only on the wrapper — set them via `.Set(\"follow_mode\", (int)FollowMode2D.Simple)` on the underlying node\n- [ ] Pin the addon version in `plugin.cfg`\u002Fversion control — pre-1.0, minor bumps can break API\n","# Phantom Camera\n\n> **Related skills:** **camera-system** for hand-rolled camera patterns, **tween-animation** for the easing concepts the transitions build on.\n\n> **Addon:** Phantom Camera · version `v0.11.0.4` · Godot 4.4+ · MIT · source: https:\u002F\u002Fgithub.com\u002Framokz\u002Fphantom-camera · nodes are GDScript, plus an official C# wrapper API (`namespace PhantomCamera`) shipped as source `.cs` files in the addon. **Pre-1.0:** minor versions may break API.\n\n> **Godot 4.8:** not yet confirmed by the addon. Issue [#694](https:\u002F\u002Fgithub.com\u002Framokz\u002Fphantom-camera\u002Fissues\u002F694) (open) reports the plugin not loading on 4.8-beta1; v0.11.0.4 shipped a fix for it, after which the maintainer could not reproduce the failure (checked 2026-11-12).\n\n---\n\n## 1. When to use Phantom Camera vs. `camera-system`\n\n| Approach | Best for |\n|---|---|\n| Hand-rolled (`camera-system` skill) | One camera, simple follow\u002Fshake, no addon dependency |\n| **Phantom Camera** | Multiple camera \"shots\" that need priority-based switching, dead-zone\u002Fgroup\u002Fpath\u002Fthird-person follow logic, and smooth resource-driven tweens between them — Cinemachine-style workflow |\n\nReach for Phantom Camera when a scene needs several distinct camera behaviors (gameplay follow, a\ncutscene framing, a boss-fight group shot) that swap automatically based on priority, rather than one\nscript juggling every case. It replaces the `Camera2D`\u002F`Camera3D` positioning logic itself — you still\nkeep exactly one real `Camera2D`\u002F`Camera3D` per viewport; Phantom Camera nodes never render anything on\ntheir own.\n\n---\n\n## 2. Install & setup\n\n**Asset Library (recommended):** Godot AssetLib → search \"Phantom Camera\" → Download (select only the\n`phantom_camera` directory) → **Project → Project Settings → Plugins** (**Project Settings → Addons → Plugins** on 4.8) → enable it.\n\n**GitHub zip:** extract `addons\u002Fphantom_camera\u002F` into the project root, then enable the plugin the same\nway.\n\nEnabling the plugin auto-registers a `PhantomCameraManager` autoload singleton; since v0.11.0.4 it no\nlonger restarts the editor (older versions did). No manual autoload setup is needed. If an older\nversion reports a missing `PhantomCameraManager` after enabling, update to v0.11.0.4 (the #694 fix).\nSix custom node types become available in the \"Create New Node\" dialog: `PhantomCamera2D`, `PhantomCamera3D`, `PhantomCameraHost`, `PhantomCameraNoiseEmitter2D`,\n`PhantomCameraNoiseEmitter3D`, and `PhantomCameraTweenDirector`.\n\n**C# projects:** the addon ships its official wrapper as plain `.cs` source files under\n`addons\u002Fphantom_camera\u002Fscripts\u002F**` (`namespace PhantomCamera`) — no NuGet package to add. A\nC#-enabled Godot project (one with its own generated `.csproj`, `Godot.NET.Sdk`) picks these up\nautomatically once the addon folder is present; `using PhantomCamera;` is then enough (§3–§7).\n\n---\n\n## 3. Host + camera model\n\nTwo node kinds work together:\n\n- **`PhantomCameraHost`** — add it **as a child of your real `Camera2D`\u002F`Camera3D`** (not the other way\n  around). It reads the highest-priority `PhantomCamera2D`\u002F`3D` in the scene and drives the real\n  camera's transform every frame. Only the first `PhantomCameraHost` child of a given camera is used.\n- **`PhantomCamera2D`** \u002F **`PhantomCamera3D`** — placed anywhere else in the scene tree (siblings of\n  the player, inside trigger areas, cutscene rigs). Any number can exist; each one describes a candidate\n  \"shot\" via `priority`, a follow mode, and (3D only) a look-at mode. They render nothing themselves.\n\n```gdscript\n# Scene tree:\n# Camera2D (or Camera3D)\n#   └─ PhantomCameraHost\n# Player (CharacterBody2D)\n#   └─ PhantomCamera2D   (priority 0, follow_mode = SIMPLE, follow_target = Player)\n# BossArena\n#   └─ PhantomCamera2D   (priority 10, follow_mode = GROUP, follow_targets = [Player, Boss])\n```\n\n```gdscript\n# CameraRig.gd — on the Camera2D\u002FCamera3D\nextends Camera2D\n\n@onready var host: PhantomCameraHost = $PhantomCameraHost\n\nfunc _ready() -> void:\n    # host.camera_2d \u002F host.camera_3d are populated automatically from get_parent()\n    var active := host.get_active_pcam()\n    print(\"Active PCam: \", active.name if active else \"none\")\n```\n\n```csharp\n\u002F\u002F CameraRig.cs — on the Camera2D\u002FCamera3D\nusing PhantomCamera;\n\npublic partial class CameraRig : Camera2D\n{\n    private PhantomCameraHost _host;\n\n    public override void _Ready()\n    {\n        \u002F\u002F Host.Camera2D \u002F Host.Camera3D are populated automatically from GetParent()\n        _host = GetNode\u003CNode>(\"PhantomCameraHost\").AsPhantomCameraHost();\n        var active = _host.GetActivePhantomCamera();\n        GD.Print(\"Active PCam: \", active is PhantomCamera2D p ? p.Node2D.Name.ToString() : \"none\");\n    }\n}\n```\n\n`PhantomCameraHost.interpolation_mode` (C#: `InterpolationMode`, enum `Auto`\u002F`Idle`\u002F`Physics`\u002F`Manual`)\ncontrols when the Host updates the real camera:\n`AUTO` (default — picks physics or idle based on the active PCam's target), `IDLE`, `PHYSICS`, or\n`MANUAL` (call `host.process(delta)` yourself each tick).\n\n`host_layers` (render-layer flags: 2D on the Host and `PhantomCamera2D`, 3D on `PhantomCamera3D`) gate which PCams\na given Host will consider — a PCam is only eligible if its `host_layers` bitmask overlaps the Host's.\n\n---\n\n## 4. Priority-based switching\n\nEvery `PhantomCamera2D`\u002F`3D` has `priority: int = 0`. The `PhantomCameraHost` attached to the scene's\nreal camera always follows the highest-priority PCam that shares a `host_layers` bit with it. Change\n`priority` at runtime with `set_priority(value)` \u002F read with `get_priority()` — values are clamped to\n`>= 0`.\n\n```gdscript\n# TriggerArea.gd — raise priority while the player is inside, restore on exit\nextends Area2D\n\n@export var area_pcam: PhantomCamera2D\n\nfunc _ready() -> void:\n    area_entered.connect(_on_entered)\n    area_exited.connect(_on_exited)\n\nfunc _on_entered(area: Area2D) -> void:\n    if area.get_parent() is CharacterBody2D:\n        area_pcam.set_priority(20)\n\nfunc _on_exited(area: Area2D) -> void:\n    if area.get_parent() is CharacterBody2D:\n        area_pcam.set_priority(0)\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class TriggerArea : Area2D\n{\n    [Export] private Node2D _areaPCamNode;\n    private PhantomCamera2D _areaPCam;\n\n    public override void _Ready()\n    {\n        _areaPCam = _areaPCamNode.AsPhantomCamera2D();\n        AreaEntered += a => { if (a.GetParent() is CharacterBody2D) _areaPCam.Priority = 20; };\n        AreaExited  += a => { if (a.GetParent() is CharacterBody2D) _areaPCam.Priority = 0; };\n    }\n}\n```\n\nUseful events on each PCam wrapper: `BecameActive`, `BecameInactive`, `TweenStarted`, `IsTweening`\n(every frame while transitioning), `TweenInterrupted` (a higher-priority PCam preempted this tween —\nargument is the interrupting node), `TweenCompleted` — subscribe with `+=`, same names as the GDScript\nsignals in PascalCase.\n\n`priority_override: bool` is an editor-only \"force preview\" toggle for quickly previewing a shot without\ntouching `priority`; it's disabled automatically in exported builds — don't use it for gameplay logic.\n\n---\n\n## 5. Follow modes\n\n`PhantomCamera2D`\u002F`PhantomCamera3D` follow a target through the `FollowMode` enum: `GLUED`, `SIMPLE`, `GROUP`, `PATH`, `FRAMED`, and `THIRD_PERSON` (3D only). The reference covers each mode's properties, GDScript and C# setup, `GROUP` auto-reframe, and the follow options `follow_axis_lock`, `rotate_with_target` and `lookahead` (both 2D only), plus `is_following()` and `teleport_position()`.\n\n> See [references\u002Ffollow-modes.md](references\u002Ffollow-modes.md) for the mode table, setup examples, and the follow options.\n\n---\n\n## 6. Look-at modes (3D only)\n\n`PhantomCamera2D` has no look-at system — only `rotate_with_target` (§5). `PhantomCamera3D` adds:\n\n```gdscript\nenum LookAtMode { NONE = 0, MIMIC = 1, SIMPLE = 2, GROUP = 3 }\n```\n\n| Mode | Behavior |\n|---|---|\n| `MIMIC` | Copies the target's rotation directly. |\n| `SIMPLE` | Looks straight at `look_at_target` (single `Node3D`). |\n| `GROUP` | Looks at the centroid of `look_at_targets: Array[Node3D]`. |\n\n```gdscript\nextends PhantomCamera3D\n\nfunc _ready() -> void:\n    look_at_mode = LookAtMode.SIMPLE\n    look_at_target = get_node(\"..\u002FBoss\")\n    look_at_damping = true\n    look_at_damping_value = 0.25  # single scalar, not per-axis\n    up_target = get_node(\"..\u002FGroundNormalMarker\")  # overrides `up` continuously\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class BossLookAtSetup : Node\n{\n    [Export] private Node3D _pCamNode; \u002F\u002F has a PhantomCamera3D node\u002Fscript attached\n    [Export] private Node3D _boss;\n    [Export] private Node3D _groundNormalMarker;\n\n    public override void _Ready()\n    {\n        \u002F\u002F LookAtMode has no wrapper setter (getter-only) — set it on the underlying node.\n        _pCamNode.Set(\"look_at_mode\", (int)LookAtMode.Simple);\n\n        var pCam = _pCamNode.AsPhantomCamera3D();\n        pCam.LookAtTarget = _boss;\n        pCam.LookAtDamping = true;\n        pCam.LookAtDampingValue = 0.25f; \u002F\u002F single scalar, not per-axis\n        pCam.UpTarget = _groundNormalMarker;\n    }\n}\n```\n\n**Gotcha (from the addon's own runtime warning):** combining a non-`NONE` `follow_mode` with a\nnon-`NONE` `look_at_mode` on the same `PhantomCamera3D` prints \"Using both Look At and Follow Mode on\nthe same PCam3D has not been fully tested yet, proceed with caution!\" — treat that combination as\nexperimental and verify it manually before shipping.\n\n---\n\n## 7. Tweening between cameras\n\nEach PCam owns a `tween_resource: PhantomCameraTween` (a `Resource` — share one `.tres` across several\nPCams to reuse timing, or leave each with its own default instance):\n\n```gdscript\nenum TransitionType {\n    LINEAR = 0, SINE = 1, QUINT = 2, QUART = 3, QUAD = 4, EXPO = 5,\n    ELASTIC = 6, CUBIC = 7, CIRC = 8, BOUNCE = 9, BACK = 10,\n}\nenum EaseType { EASE_IN = 0, EASE_OUT = 1, EASE_IN_OUT = 2, EASE_OUT_IN = 3 }\n\n@export var duration: float = 1.0\n@export var transition: TransitionType = TransitionType.LINEAR\n@export var ease: EaseType = EaseType.EASE_IN_OUT\n```\n\nThese map 1:1 to Godot's built-in `Tween.TransitionType` \u002F `Tween.EaseType` names (minus the\n`TRANS_`\u002F`EASE_` prefixes) — see `tween-animation` for what each curve looks like.\n\n```gdscript\n# Cutscene PCam: slow, elastic-eased transition when it takes priority\nextends PhantomCamera3D\n\nfunc _ready() -> void:\n    tween_resource = PhantomCameraTween.new()\n    tween_duration = 1.5          # passthrough — writes tween_resource.duration\n    # TransitionType\u002FEaseType live on PhantomCameraTween — qualify them:\n    tween_transition = PhantomCameraTween.TransitionType.ELASTIC\n    tween_ease = PhantomCameraTween.EaseType.EASE_OUT\n```\n\n```csharp\nusing PhantomCamera;\n\npublic partial class CutsceneCamSetup : Node\n{\n    [Export] private Node3D _pCamNode; \u002F\u002F has a PhantomCamera3D node\u002Fscript attached\n\n    public override void _Ready()\n    {\n        var pCam = _pCamNode.AsPhantomCamera3D();\n        pCam.TweenResource = PhantomCameraTween.New();\n        pCam.TweenDuration = 1.5f;   \u002F\u002F passthrough — writes TweenResource.Duration\n        pCam.TweenTransition = TransitionType.Elastic;\n        pCam.TweenEase = EaseType.EaseOut;\n    }\n}\n```\n\n`tween_on_load: bool = true` — if this PCam is already the highest-priority one when it's instantiated\nat runtime, it tweens the camera into place on load; set `false` to cut instantly instead. If\n`tween_resource` is `null`, `get_tween_duration()` returns `0.0` (instant cut).\n\n---\n\n## Implementation checklist\n\n- [ ] Exactly one `PhantomCameraHost` per real `Camera2D`\u002F`Camera3D`, added **as its child**\n- [ ] Every `PhantomCamera2D`\u002F`3D` shares a `host_layers` bit with the Host that should track it\n- [ ] Priority changes use `set_priority()` or the `priority` property (both route through the setter, which notifies the Host)\n- [ ] `follow_target` \u002F `follow_targets` assigned before relying on `is_following()`\n- [ ] `GROUP` follow mode uses `follow_targets` (array), not `follow_target` (single node)\n- [ ] 3D `THIRD_PERSON` rotation setters (`set_third_person_rotation`, `set_third_person_rotation_degrees`, `set_third_person_quaternion`) guard on `follow_mode == THIRD_PERSON` and no-op with a printed error otherwise — `set_follow_distance`\u002F`set_spring_length`\u002F`set_collision_mask(_value)`\u002F`set_shape` have **no** such guard and print nothing\n- [ ] Combined `follow_mode` + `look_at_mode` on one `PhantomCamera3D` tested manually (addon marks this untested)\n- [ ] `tween_resource` shared deliberately (same `.tres`) when multiple PCams should transition identically\n- [ ] C# obtains wrappers via `AsPhantomCamera2D()`\u002F`AsPhantomCamera3D()`\u002F`AsPhantomCameraHost()`\u002F`AsPhantomCameraTween()` — they are plain classes wrapping the node, **not** `Node` subclasses, so never `class MyCam : PhantomCamera2D`\n- [ ] C# enum names: only `FollowMode`\u002F`FollowLockAxis` are dimension-suffixed (`FollowMode2D`, `FollowLockAxis3D`); `LookAtMode`, `TransitionType`, `EaseType`, `InterpolationMode` are not\n- [ ] `FollowMode`\u002F`LookAtMode` are getter-only on the wrapper — set them via `.Set(\"follow_mode\", (int)FollowMode2D.Simple)` on the underlying node\n- [ ] Pin the addon version in `plugin.cfg`\u002Fversion control — pre-1.0, minor bumps can break API\n",{"name":5,"description":7},"master","60c28fdc40706a24576731e9fb3508b9c95258ad","skills\u002Fphantom-camera",63,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter","https:\u002F\u002Fgithub.com\u002Fjame581","https:\u002F\u002Fjanmesarc.online\u002F","Software engineer. My biggest passion is game development.","2026-11-14 20:45:49",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add jame581\u002FGodotPrompter --skill phantom-camera",{"tool":51,"command":52},"bunx","bunx skills add jame581\u002FGodotPrompter --skill phantom-camera",{"tool":54,"command":55},"pnpm","pnpm dlx skills add jame581\u002FGodotPrompter --skill phantom-camera","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fphantom-camera\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ffollow-modes.md","REFERENCE","参考文档",3558,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fphantom-camera\u002Freferences\u002Ffollow-modes.md",[66,86,107,137,160,178],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":31},"01M6KRFE5BR2PSD08ZKDAS66R7","xr-development","Use when building VR\u002FAR\u002FXR applications — OpenXR setup, XROrigin3D, hand tracking, controllers, passthrough, and Meta Quest deployment in Godot 4.3+","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fxr-development\u002FSKILL.md",[],[73,74,30,75,76,77,78,79,80,81,82,24,83,84,85],"xr development","development","deployment","godot","vr","setup","tracking","godot 4","ar","hand","Meta","applications","quest",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":31},"01M6KRF8GZTG1TAS506MFBSGFC","web-services","Use when a Godot game calls a web server — HTTPRequest, downloads, REST\u002FJSON APIs, auth headers, WebSocketPeer clients, TLS, retries, and keeping secrets out of the build. Not for game networking\u002FRPCs (multiplayer-basics) or browser export (web-export)","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-services\u002FSKILL.md",[],[93,94,95,96,97,98,99,100,24,30,76,101,102,103,104,105,106],"web services","web","services","tls","retries","calling","auth","downloads","clients","headers","secrets","json","build","REST",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":118,"publishedAt":31},"01M6KRF38Q4WSKAYFS56PG87T0","web-export","Use when shipping a Godot game to the browser — Web export preset options, threads vs no-threads and COOP\u002FCOEP headers, hosting on itch.io or your own server, PWA, JavaScriptBridge, user:\u002F\u002F persistence, audio and input limits, and load size","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fweb-export\u002FSKILL.md",[113],{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[94,119,120,121,122,123,124,125,102,126,127,30,128,129,130,131,132,133,24,134,135,136],"export","web export","threads","limits","shipping","size","options","hosting","input","Coop","preset","browser","game","io","load","pwa","Audio","server",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":151,"publishedAt":31},"01M6KREYFETEBH62ZTN6EZH2X3","using-godot-prompter","Bootstrap skill — establishes how to find and use GodotPrompter skills, with platform-specific tool mapping","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fusing-godot-prompter\u002FSKILL.md",[143,146],{"categoryNo":144,"categoryName":145,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":147,"categoryName":148,"taxonomyType":149,"taxonomyTypeDesc":150},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[76,152,153,26,154,24,155,156,157,158,159],"using godot prompter","find","bootstrap","tool","platform","mapping","how","how to",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":31},"01M6KRER5G7EQWKGAFN8QJKQ69","tween-animation","Use when implementing tweens — property animation, method tweening, chaining, parallel sequences, easing, and common UI\u002Fgameplay motion recipes","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Ftween-animation\u002FSKILL.md",[],[167,168,24,169,170,171,172,173,174,175,176,30,177],"tween animation","Animation","motion","parallel","gameplay","chaining","ui","recipes","common","implementing","sequences",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":31},"01M6KREKGCQMVDV8WX7HWX8BZG","state-machine","Use when building a state machine or refactoring logic into one — enum, node, and resource-based FSM patterns with trade-offs. Not for adding states to an existing one","https:\u002F\u002Fgithub.com\u002Fjame581\u002FGodotPrompter\u002Fblob\u002Fmaster\u002Fskills\u002Fstate-machine\u002FSKILL.md",[],[185,186,187,76,30,188,189,190,191,192,26,24,176,193],"state","state machine","machine","patterns","node","fsm","state machines","trade","trade-offs"]