Ease camera tilting quickly toward a steep angle, slowly toward a shallow angle

This commit is contained in:
James R 2021-04-06 17:52:03 -07:00
parent 0642e2206e
commit 46ba47785d

View file

@ -4312,8 +4312,9 @@ DoABarrelRoll (player_t *player)
slope -= Quaketilt(player);
delta = slope - player->tilt;
smoothing = FixedDiv(abs((INT32)delta), ANG15);
delta = FixedDiv(delta, 17 * (FRACUNIT + smoothing));
smoothing = FixedDiv(AbsAngle(slope), ANGLE_45);
delta = FixedDiv(delta, 33 * FixedDiv(FRACUNIT,
FRACUNIT + smoothing));
if (delta)
player->tilt += delta;