mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 01:20:35 +00:00
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:
parent
25a22cc6f2
commit
a8a28c1512
13 changed files with 820 additions and 508 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue