mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 12:13:16 +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);
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue