From 438831b93e409719900c629ef1c1acddc3632645 Mon Sep 17 00:00:00 2001 From: Schark Date: Tue, 29 Sep 2026 17:57:35 -0400 Subject: Final camera adjustments --- platformer/src/config.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'platformer/src') diff --git a/platformer/src/config.h b/platformer/src/config.h index c71b330..346b2b8 100644 --- a/platformer/src/config.h +++ b/platformer/src/config.h @@ -78,11 +78,11 @@ * CAMERA_SWING_OFFSET 0.52f rad (~30 deg) off directly-behind that a * sideways run swings the camera toward * CAMERA_SWING_SPEED 0.5f rad/s max swing rate on a fully sideways run - * CAMERA_AUTO_PITCH_DELAY 3.0f s without touching the camera before it tilts + * CAMERA_AUTO_PITCH_DELAY 2.0f s without touching the camera before it tilts * to its preferred angle on its own - * CAMERA_AUTO_PITCH_DEG 25.0f degrees; the preferred look-down angle - * CAMERA_AUTO_PITCH_SPEED 0.06f rad/s; top speed of that tilt - * CAMERA_AUTO_PITCH_ACCEL 0.05f rad/s^2; how gently the tilt speeds up + * CAMERA_AUTO_PITCH_DEG 15.0f degrees; the preferred look-down angle + * CAMERA_AUTO_PITCH_SPEED 0.054f rad/s; top speed of that tilt + * CAMERA_AUTO_PITCH_ACCEL 0.045f rad/s^2; how gently the tilt speeds up * and slows down (ease in/out) * CAMERA_FOV_DEG 60.0f vertical field of view * CAMERA_NEAR 0.1f @@ -165,10 +165,10 @@ #define CAMERA_LEAD_RATE 1.0f /* 1/s; sideways runs push the player to the trailing thirds line; higher = faster lead */ #define CAMERA_SWING_OFFSET 0.52f /* rad (~30 deg) off directly-behind that sideways runs swing toward; 0 = fully behind */ #define CAMERA_SWING_SPEED 0.5f /* rad/s swing rate on a fully sideways run; lower = slower, subtler swing */ -#define CAMERA_AUTO_PITCH_DELAY 3.0f /* s hands-off before the camera tilts to CAMERA_AUTO_PITCH_DEG on its own */ -#define CAMERA_AUTO_PITCH_DEG 25.0f /* degrees above horizontal the camera prefers to look down at the player */ -#define CAMERA_AUTO_PITCH_SPEED 0.06f /* rad/s top tilt speed toward that angle; lower = slower, subtler tilt */ -#define CAMERA_AUTO_PITCH_ACCEL 0.05f /* rad/s^2 ease in/out of the tilt; lower = softer start and stop */ +#define CAMERA_AUTO_PITCH_DELAY 2.0f /* s hands-off before the camera tilts to CAMERA_AUTO_PITCH_DEG on its own */ +#define CAMERA_AUTO_PITCH_DEG 15.0f /* degrees above horizontal the camera prefers to look down at the player */ +#define CAMERA_AUTO_PITCH_SPEED 0.054f /* rad/s top tilt speed toward that angle; lower = slower, subtler tilt */ +#define CAMERA_AUTO_PITCH_ACCEL 0.045f /* rad/s^2 ease in/out of the tilt; lower = softer start and stop */ #define CAMERA_FOV_DEG 60.0f /* vertical field of view, degrees; higher = wider, faster-feeling view */ #define CAMERA_NEAR 0.1f /* m; near clip plane */ #define CAMERA_FAR 500.0f /* m; far clip plane (must reach past the world edge) */ -- cgit v1.2.3-18-g5258