BazkieBumpercar / GameplayFootball

Football game, discontinued

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

width depth mistake?

ziaoang opened this issue · comments

In src/onthepitch/teamAIcontroller.cpp
line 356 - 359
···
float backXBound = centerX - adaptedDepth * pitchHalfW * -team->GetSide();
float frontXBound = centerX + adaptedDepth * pitchHalfW * -team->GetSide();
float lowYBound = centerY - adaptedWidth * pitchHalfH;
float highYBound = centerY + adaptedWidth * pitchHalfH;
···
Is "adaptedDepth" should corresponding to "pitchHalfH" and "adaptedWidth" corresponding to "pitchHalfW"?

I don't think it's a bug, but I do think I may have used very confusing definitions. I seem to be using 'width' in one context, where the same thing is called 'height' in another context. Sorry about that :$