◇
component · drop-in viewer
ChaseCamera
A chase camera behavior for Voxel Raceway. Add it to the active camera entity with `target` set to the player kart's entity id; it trails the kart and eases both its position and its look-at through corners.
by·posted 3mo ago
What it does
ChaseCamera
A chase camera behavior for Voxel Raceway. Add it to the active camera entity
with target set to the player kart's entity id; it trails the kart and eases
both its position and its look-at through corners.
Fields
target— entity id of the kart to follow (falls back toCamera.follow).distance/height— rest offset behind / above the kart.lookHeight/lookAhead— look-at point relative to the kart.stiffness— position follow speed (higher = snappier).boost(0..1) — driven each frame by the race manager; widens FOV and pulls the camera back under boost.baseFov/boostFov— resting and full-boost vertical FOV (degrees).
It runs at a high execution order so it samples the kart pose after the kart has moved this frame, and writes the camera transform last.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.