summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--platformer/README.md2
-rw-r--r--platformer/src/config.h16
2 files changed, 9 insertions, 9 deletions
diff --git a/platformer/README.md b/platformer/README.md
index ef39837..6baef89 100644
--- a/platformer/README.md
+++ b/platformer/README.md
@@ -53,7 +53,7 @@ plus plain box platforms to jump on) *is* the game until the controls feel great
line so there's open screen in the direction they're heading, and slowly swings toward ~30° off
directly behind them. Controls stay camera-relative, so holding sideways through the swing makes the
player arc, SM64-style. When they stop, the camera eases until they sit on the zone's edge. After
- 3 s without touching the camera, it also slowly eases into looking down at the player at ~25°.
+ 2 s without touching the camera, it also slowly eases into looking down at the player at ~15°.
Off-center shots are intentional: they're where the cinematic feel comes from. Clicking the right
stick glides the camera behind the player with them centered, and the zone rules pick up again from
there.
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) */