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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user