mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 15:49:00 +00:00
foobar!
This commit is contained in:
parent
426364b961
commit
2e38b51e1c
1 changed files with 0 additions and 12 deletions
|
@ -877,7 +877,6 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
||||||
}
|
}
|
||||||
|
|
||||||
if(fwd != 0.0f || right != 0.0f){
|
if(fwd != 0.0f || right != 0.0f){
|
||||||
#if 1
|
|
||||||
CVector totalSpeed = fwd*wheelFwd + right*wheelRight;
|
CVector totalSpeed = fwd*wheelFwd + right*wheelRight;
|
||||||
|
|
||||||
CVector turnDirection = totalSpeed;
|
CVector turnDirection = totalSpeed;
|
||||||
|
@ -911,17 +910,6 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
||||||
|
|
||||||
ApplyMoveForce(impulse * direction);
|
ApplyMoveForce(impulse * direction);
|
||||||
ApplyTurnForce(turnImpulse * direction, wheelContactPoint);
|
ApplyTurnForce(turnImpulse * direction, wheelContactPoint);
|
||||||
#else
|
|
||||||
CVector direction = fwd*wheelFwd + right*wheelRight;
|
|
||||||
float speed = direction.Magnitude();
|
|
||||||
direction.Normalise();
|
|
||||||
|
|
||||||
float impulse = speed*m_fMass;
|
|
||||||
float turnImpulse = speed*GetMass(wheelContactPoint, direction);
|
|
||||||
|
|
||||||
ApplyMoveForce(impulse * direction);
|
|
||||||
ApplyTurnForce(turnImpulse * direction, wheelContactPoint);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue