Move a bunch of math to cpp files + small fixes

This commit is contained in:
Sergeanur
2020-09-14 20:48:49 +03:00
parent 93d77f340d
commit 38ec1bd50d
14 changed files with 857 additions and 529 deletions

View File

@@ -140,8 +140,7 @@ void CWaterCannon::Render(void)
if ( !bInit )
{
CVector cp = CrossProduct(m_avecPos[pointB] - m_avecPos[pointA], TheCamera.GetForward());
cp.Normalise(0.05f);
norm = cp;
norm = cp * (0.05f / cp.Magnitude());
bInit = true;
}