mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +00:00
Commiting what I have currently, but disabled
This commit is contained in:
parent
8bb4259de8
commit
41250d1751
1 changed files with 11 additions and 0 deletions
11
src/p_user.c
11
src/p_user.c
|
@ -8872,6 +8872,17 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
thiscam->aiming = ANGLE_22h;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// SRB2Kart: keep camera the same distance away from the player, while maintaining its angle
|
||||
{
|
||||
fixed_t xlen = (thiscam->x+thiscam->momx) - (mo->x+mo->momx);
|
||||
fixed_t ylen = (thiscam->y+thiscam->momy) - (mo->y+mo->momy);
|
||||
fixed_t xydist = P_AproxDistance(xlen, ylen);
|
||||
thiscam->momx = FixedMul(dist, FixedDiv(xlen, xydist));
|
||||
thiscam->momy = FixedMul(dist, FixedDiv(ylen, xydist));
|
||||
}
|
||||
#endif
|
||||
|
||||
return (x == thiscam->x && y == thiscam->y && z == thiscam->z && angle == thiscam->aiming);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue