Static Orbit Cam
Categories:
The Static Orbit Cam is a specialized Phantom Camera type that maintains a fixed orbital position around its follow target. Unlike an input-driven orbit camera, the Static Orbit Cam holds a constant distance, pitch, and yaw relative to the target — the player does not control the orbit angle. The camera automatically rotates to keep the target centered while maintaining its fixed offset.
This camera type is useful for fixed-perspective gameplay (top-down, isometric, side-scrolling), environmental showcase views, and pre-positioned cinematic angles where the camera should orbit a subject without player control.
For usage guides and setup examples, see The Basics: GS_PhantomCam.
How It Works
The StaticOrbitPhantomCamComponent extends GS_PhantomCameraComponent and overrides the follow pipeline to maintain a fixed orbital offset. Each tick:
- The component reads the follow target’s world position.
- It applies the configured orbit distance, pitch, and yaw to compute the camera’s world position relative to the target.
- The camera rotates to face the target.
- Standard Phantom Camera look-at processing applies on top if a separate look-at target is configured.
Because the orbit parameters are fixed, the camera smoothly tracks the target’s movement while preserving the same viewing angle at all times.
Setup
- Create an entity and add GS_PhantomCameraComponent.
- Add StaticOrbitPhantomCamComponent to the same entity.
- Set the Follow Target to the entity the camera should orbit around.
- Configure the orbit Distance, Pitch, and Yaw on the Static Orbit component.
- Set the Priority on the Phantom Camera component.
- The camera registers with the Cam Manager automatically on activation.
Inspector Properties
| Property | Type | Description |
|---|---|---|
OrbitDistance | float | The fixed distance from the camera to the follow target. |
OrbitPitch | float | The vertical angle of the orbit in degrees. 0 is level; positive values look down. |
OrbitYaw | float | The horizontal angle of the orbit in degrees. 0 faces the target’s forward direction. |
See Also
Get GS_PhantomCam
GS_PhantomCam — Explore this gem on the product page and add it to your project.