Camera Mode: Predictor
Filter that shifts the camera's look-at target ahead of the vehicle based on velocity. Creates a forward-looking effect that anticipates the vehicle's movement.
Filter that shifts the camera's look-at target ahead of the vehicle based on velocity. Creates a forward-looking effect that anticipates the vehicle's movement.
Overview
A hidden filter that offsets data.res.targetPos by a velocity-scaled amount, then recomputes the camera rotation to look at the predicted position. This makes the camera "lead" the vehicle.
Class Properties
| Property | Type | Default | Description |
|---|---|---|---|
isFilter | bool | true | Post-processes other camera output |
hidden | bool | true | Not selectable by the user |
dtFuture | number | 0.1 | Look-ahead time in seconds |
Methods
| Method | Signature | Description |
|---|---|---|
init | C:init(dtFuture) | Set look-ahead time |
update | C:update(data) | Offset target by velocity, recompute rotation |
Look-Ahead Calculation
-- Shift target position forward by velocity * look-ahead time
data.res.targetPos:setAdd(self.dtFuture * data.vel)
-- Recompute rotation to look at the predicted position
data.res.rot = quatFromDir((data.res.targetPos - data.res.pos):normalized())Key Notes
- Default look-ahead is 100ms - subtle but reduces camera lag feel
- Only affects
targetPosandrot- position stays unchanged - Velocity comes from
data.vel(vehicle velocity vector) - Simple and composable - often used with orbit or chase cameras
See Also
- Camera Mode: Autopoint - Related reference
- Camera Mode: Autozoom - Related reference
- Camera Mode: Big Map - Related reference
- Core Systems Guide - Guide
Camera Mode: Path
Global camera that follows a spline path defined by markers. Uses Catmull-Rom interpolation for smooth position and rotation along timed control points. Supports replay synchronization, manual FOV, bu
Camera Mode: Relative
Vehicle-relative free camera with full 6DOF movement, saveable position slots, adjustable point light, and near-clip control. The primary camera for cinematic vehicle photography.