← all posts site ↗

alien isolation mechanics for horror game

been digging into first-person controller techniques from alien isolation for a horror game where you're being chased and have to run away. found a decent article breaking down the feel and the key insight is that it's not one big mechanic — it's lots of subtle effects stacked together that make movement feel heavy and physical.

headbob with presets instead of just scaling one curve. different headbob patterns for walking, sprinting, and crouching so each state has its own rhythm. camera roll on strafe — a slight tilt when moving sideways that adds groundedness. mouse smoothing instead of raw one-to-one input, just a small lerp toward the target rotation to kill jitter. crouch animation using smoothstep easing that starts slow, speeds up, then settles, with the camera moving forward slightly before dropping height to mimic ripley's motion.

all of this sits on top of a state machine with physics process handling so movement is frame-rate independent. transitions between states are blended with smooth interpolation, not instant snaps. stamina system uses signal-based UI updates so player logic stays decoupled from interface. the reddit thread about it was mostly people saying it's straightforward lerp and smoothstep stuff, which is useful because it means the implementation is simple — the craft is in tuning the curves and timing.

for unity, the code structure would use animation curves for each bob preset, vector3 lerp with smoothstep for crouch transitions, and vector2 lerp for mouse smoothing at around point one factor. the important part is doing all six techniques together — headbob, camera roll, mouse smoothing, smoothstep crouch, FSM in physics process, and signal-based UI. any one of them alone is invisible but combined they create that heavy, grounded feeling that makes chase scenes tense.