Skip to main content
Part of the vfx-lightning skill. The skill links here when your agent needs the detail.
Variant of the canonical “trauma model” shake (the game-feel skill has the full game-feel discipline). Lightning and explosion recipes call add_trauma() to chain visual impact with screen-level reaction.

Setup (autoload script)

autoloads/CameraShake.gd:
Register CameraShake as autoload in Project Settings. An autoload is a node at /root/CameraShake, not an engine singleton — reach it with get_node_or_null("/root/CameraShake"). Engine.has_singleton("CameraShake") is always false for an autoload (measured), so never gate the call on it.

Usage

The trauma model: noise-driven shake whose intensity grows quadratically with trauma. Multiple sources stack but saturate — a player taking 5 hits in a row shakes harder, but never beyond the max.
Source: library/skills/vfx-lightning/_building-blocks/trauma-shake-snippet.md, rendered from summer-engine@4.3.0 on npm.