CBike done

This commit is contained in:
aap
2020-06-07 00:01:48 +02:00
parent db9057f5a8
commit 5711159e68
8 changed files with 654 additions and 75 deletions

View File

@ -748,7 +748,7 @@ CVehicle::ProcessWheel(CVector &wheelFwd, CVector &wheelRight, CVector &wheelCon
static bool bBraking;
static bool bDriving;
#ifdef FIX_BUGS
#ifdef FIX_SIGNIFICANT_BUGS
bAlreadySkidding = false;
#endif
@ -903,7 +903,7 @@ CVehicle::ProcessBikeWheel(CVector &wheelFwd, CVector &wheelRight, CVector &whee
static bool bDriving;
static bool bReversing;
#ifdef FIX_BUGS
#ifdef FIX_SIGNIFICANT_BUGS
bAlreadySkidding = false;
#endif
@ -1032,7 +1032,6 @@ CVehicle::ProcessBikeWheel(CVector &wheelFwd, CVector &wheelRight, CVector &whee
float impulse = speed*m_fMass;
float turnImpulse = speed*GetMass(wheelContactPoint, direction);
CVector vTurnImpulse = turnImpulse * direction;
ApplyMoveForce(impulse * direction);
float turnRight = DotProduct(vTurnImpulse, GetRight());