This skill covers the techniques behind a camera that follows smoothly at any frame rate, leads the action, never shows outside the level and never clips through walls. It maps each technique onto the engine’s own camera node or rig and prefers the built-in rig before hand-rolling one.
It is aimed at symptoms: a camera that lags, jitters while following, peeks past the level edge, clips through walls or feels different at different frame rates.
What You Get
- Frame-rate-independent smoothing using exponential smoothing or a critically damped spring
- A deadzone plus look-ahead pattern that ignores small movements and leads the direction of travel
- A third-person orbit with a spring arm or Cinemachine Deoccluder for wall collision
- A headless check that steps the follow code at two time steps and compares how far the camera trails the target
Common Use Cases
- Fixing camera jitter when following a physics body
- Keeping a 2D camera inside the level rectangle at any zoom
- Building a third-person orbit camera that does not clip through walls
- Removing the slingshot whip after a teleport or respawn
What Makes It Unique
It contains a numeric test for frame-rate dependence: with rate 8 exponential smoothing the lag is about 33 px at 30 FPS and 37 px at 144 FPS, while a fixed per-frame lerp gives about 90 px and 19 px. It also keeps shake as an additive offset written by the game-feel skill, so follow and shake compose without fighting.
Under The Hood
The skill is instructions and one reference file on follow and framing, with no scripts. The agent is told to step the follow code headless at two time steps as a check, which means running the project’s code, then to ask the user to test corners, walls and level edges at low and high frame rates. It does not fetch web pages or call APIs, and it writes only the camera code the task asks for.