mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Ease camera tilting quickly toward a steep angle, slowly toward a shallow angle
This commit is contained in:
parent
0642e2206e
commit
46ba47785d
1 changed files with 3 additions and 2 deletions
|
|
@ -4312,8 +4312,9 @@ DoABarrelRoll (player_t *player)
|
||||||
slope -= Quaketilt(player);
|
slope -= Quaketilt(player);
|
||||||
|
|
||||||
delta = slope - player->tilt;
|
delta = slope - player->tilt;
|
||||||
smoothing = FixedDiv(abs((INT32)delta), ANG15);
|
smoothing = FixedDiv(AbsAngle(slope), ANGLE_45);
|
||||||
delta = FixedDiv(delta, 17 * (FRACUNIT + smoothing));
|
delta = FixedDiv(delta, 33 * FixedDiv(FRACUNIT,
|
||||||
|
FRACUNIT + smoothing));
|
||||||
|
|
||||||
if (delta)
|
if (delta)
|
||||||
player->tilt += delta;
|
player->tilt += delta;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue