mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-18 14:49:22 +00:00
fix neo screendroplet moving
This commit is contained in:
parent
ad560ffaf9
commit
c93fb5e443
2 changed files with 15 additions and 1 deletions
|
@ -877,6 +877,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
|||
}
|
||||
|
||||
if(fwd != 0.0f || right != 0.0f){
|
||||
#if 1
|
||||
CVector totalSpeed = fwd*wheelFwd + right*wheelRight;
|
||||
|
||||
CVector turnDirection = totalSpeed;
|
||||
|
@ -910,6 +911,17 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
|
|||
|
||||
ApplyMoveForce(impulse * direction);
|
||||
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…
Add table
Add a link
Reference in a new issue