Skip to main content

Module camera

Module camera 

Source
Expand description

Proof Engine camera system.

Provides three camera modes usable independently or together:

  1. Free camera — spring-driven position + target with trauma shake
  2. Orbital camera — rotates around a target at a given distance, with zoom
  3. Cinematic path — follows a spline path of control points at a given speed

All three use SpringDamper physics for smooth, organic motion. Shake/trauma is applied as an additive offset after spring resolution.

Structs§

CameraState
A snapshot of camera state for this frame.
CinematicPath
A cinematic camera path — plays through a sequence of PathPoints.
OrbitalCamera
Orbital camera — rotates around a target point at a configurable distance.
PathPoint
A control point on the cinematic camera path.
ProofCamera
The main engine camera. Supports free, orbital, and cinematic modes.
TraumaShake
Camera trauma/shake state, driven by a decaying trauma value.

Enums§

PathEasing
Easing function for a path segment.