From 651fa5ef62cb9e8e1f47c07cc8d6b3abc4d70cd5 Mon Sep 17 00:00:00 2001 From: Schark Date: Thu, 24 Sep 2026 00:38:44 -0400 Subject: Further camera adjustments, feeling great --- platformer/src/config.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'platformer/src/config.h') diff --git a/platformer/src/config.h b/platformer/src/config.h index b615c4c..c71ae35 100644 --- a/platformer/src/config.h +++ b/platformer/src/config.h @@ -61,8 +61,10 @@ * CAMERA_PITCH_SPEED 1.5f rad/s at full right-stick tilt * CAMERA_FOLLOW_RATE 8.0f 1/s; how fast the camera's DISTANCE catches up * when the player runs toward/away from it - * CAMERA_ZONE_INSET 0.05f fraction of the window the resting zone sits - * inside the thirds lines + * CAMERA_ZONE_INSET 0.05f fraction of the window between the resting + * zone and the running bound, on every side + * CAMERA_ZONE_TOP 0.50f window fraction (0 = bottom) of the resting + * zone's top edge; lower = more view ahead * CAMERA_SETTLE_RATE 3.0f 1/s; how fast the camera re-frames a player * who stopped outside the resting zone * CAMERA_RECENTER_RATE 6.0f 1/s; how fast the recenter button swings @@ -134,7 +136,8 @@ #define CAMERA_YAW_SPEED 2.5f /* rad/s orbit at full right-stick tilt; higher = faster spin */ #define CAMERA_PITCH_SPEED 1.5f /* rad/s tilt at full right-stick tilt */ #define CAMERA_FOLLOW_RATE 8.0f /* 1/s; how fast the distance catches up when running toward/away; lower = more lag */ -#define CAMERA_ZONE_INSET 0.05f /* window fraction the resting zone sits inside the thirds lines; higher = tighter zone */ +#define CAMERA_ZONE_INSET 0.05f /* window fraction between resting zone and running bound; higher = tighter zone */ +#define CAMERA_ZONE_TOP 0.50f /* resting zone's top edge (0 = bottom, 1 = top); lower = more view ahead of the player */ #define CAMERA_SETTLE_RATE 3.0f /* 1/s; re-framing after stopping outside the zone; lower = lazier, more cinematic */ #define CAMERA_RECENTER_RATE 6.0f /* 1/s; how fast recenter swings behind the player and centers them */ #define CAMERA_MIN_HEIGHT 0.5f /* m; lowest the eye may sit above the player's feet (keeps it out of the floor) */ -- cgit v1.2.3-18-g5258