What is it?
Phantom Camera is a Godot 4 plugin designed to provide and simplify common behaviors for the built-in Camera2D
and Camera3D
nodes - heavily inspired by a Unity package called Cinemachine.
It allows for simple behaviours such as following and looking at specific nodes, with an optional smooth/dampened movement, to more advance logic like reframing itself to keep multiple nodes in view and dynamically animate between specific camera positions, i.e. other PhantomCamera
nodes, on demand.
https://github.com/ramokz/phantom-camera/assets/5159399/2a900def-4a8b-46c2-976c-b8e66feec953
Showcases
Features
https://github.com/ramokz/phantom-camera/assets/5159399/6c9d1653-b4c6-4b5d-8855-402776645689
Preview what the Camera2D
/ Camera3D
sees when attached to a PhantomCamera. Accessible from the bottom panel labelled Phantom Camera
. The viewfinder rendering of the scene will only work when the combination of a Camera
, PhantomCameraHost
and PhantomCamera
are present in the scene.
🪀 Example Scenes
A 2D and 3D example scenes can be found inside res://addons/phantom_camera/examples
.
💾 Installation
Asset Library (Recommended - Stable)
- In Godot, open the
AssetLib
tab. - Search for and select "Phantom Camera".
- Download then install the plugin (be sure to only select the
phantom_camera
directory). - Enable the plugin inside
Project/Project Settings/Plugins
.
Github Releases (Recommended - Stable)
- Download a release build.
- Extract the zip file and move the
addons/phantom_camera
directory into the project root location. - Enable the plugin inside
Project/Project Settings/Plugins
.
Github Main (Latest - Unstable)
- Download the latest
main branch
. - Extract the zip file and move the
addons/phantom_camera
directory into project's root location. - Enable the plugin inside
Project/Project Settings/Plugins
.
For more help, see Godot's official documentation
📖 Roadmap
See the project page for upcoming features.
FAQ
See the FAQ page on the documentation site.
Contribution
See the contribution guidelines on the documentation site.
Credits
- Unity's Cinemachine Package for the key inspiration
- Godot for their amazing work creating the engine