- Adjust chase-cam code to work in a pitch-corrected capacity.

This commit is contained in:
Mitchell Richters 2022-10-06 19:55:55 +11:00
parent 41fc5660e5
commit 7f124eef58

View file

@ -44,7 +44,7 @@ bool calcChaseCamPos(DVector3& ppos, DCoreActor* act, sectortype** psect, DAngle
if (!*psect) return false;
// Calculate new pos to shoot backwards
DVector3 npos = -DVector3(ang.ToVector(), horiz.Tan()) * backamp;
DVector3 npos = -DVector3(ang.ToVector() * horiz.Cos(), horiz.Sin()) * backamp;
HitInfoBase hitinfo;
auto bakcstat = act->spr.cstat;