Skip to content

Commit

Permalink
Remove variable debugging and fix a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbn3D committed May 10, 2018
1 parent f18cc45 commit 708ccbb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,11 +1383,11 @@ void updateCam3pNfsAlgorithm()
float highSpeedMax = 45.f;

float highSpeedFactor = unlerp(hightSpeedMin, highSpeedMax, clamp(vehSpeed, hightSpeedMin, highSpeedMax)) * 0.020f;
showText(1, std::to_string(highSpeedFactor).c_str());
showText(2, std::to_string(vehSpeed).c_str());

Vector3f targetPos = vehPos + (up * heightOffset3P) + extraCamHeight + (currentTowHeightIncrement * up) + (vehForwardVector * finalPivotFrontOffset);
targetPos += vehVelocity * highSpeedFactor * (1.f - smoothIsInAir) * ((vehAcceleration * VEHICLE::GET_VEHICLE_ACCELERATION(veh)) * 250.f);


targetPos += vehVelocity * highSpeedFactor * (1.f - smoothIsInAir) * max(((vehAcceleration * VEHICLE::GET_VEHICLE_ACCELERATION(veh)) * 250.f), 0.f);

Vector3f velocityDir = targetPos - prevCamPos;

Expand All @@ -1408,8 +1408,6 @@ void updateCam3pNfsAlgorithm()

distIncFinal *= 0.7f;

showText(0, std::to_string(distIncFinal).c_str());

float airDistance = lerp(0.f, 2.5f, smoothIsInAirNfs * (lerp(0.6f, 1.2f, smoothIsInAirNfs)));

/*
Expand Down

0 comments on commit 708ccbb

Please sign in to comment.