Move a bunch of math to cpp files + small fixes

# Conflicts:
#	src/control/CarCtrl.cpp
#	src/math/Matrix.h
#	src/math/Vector2D.h
#	src/math/math.cpp
#	src/render/Skidmarks.cpp
This commit is contained in:
Sergeanur 2020-09-14 20:48:49 +03:00
commit a8a28c1512
13 changed files with 820 additions and 508 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;
}