feat(Handling): Updated limits

This commit is contained in:
Yimura 2021-02-19 15:43:14 +01:00
parent 021e77caf9
commit 5df780407d
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
5 changed files with 9 additions and 9 deletions

View File

@ -7,7 +7,7 @@ namespace big
if (ImGui::BeginTabItem("Brakes"))
{
ImGui::Text("Brake Force");
ImGui::SliderFloat("##brake force", &g_vehicle->m_handling->m_brake_force, 0.f, 50.f);
ImGui::SliderFloat("##brake force", &g_vehicle->m_handling->m_brake_force, -50.f, 50.f);
ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
float fBrakeBias = g_vehicle->m_handling->m_brake_bias_front / 2;
@ -15,7 +15,7 @@ namespace big
g_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2;
ImGui::Text("Hand Brake Force");
ImGui::SliderFloat("##hand brake force", &g_vehicle->m_handling->m_handbrake_force, 0.f, 50.f);
ImGui::SliderFloat("##hand brake force", &g_vehicle->m_handling->m_handbrake_force, -50.f, 50.f);
ImGui::EndTabItem();
}

View File

@ -37,7 +37,7 @@ namespace big
}
ImGui::Text("Buoyancy");
ImGui::SliderFloat("##buoyancy", &g_vehicle->m_handling->m_buoyancy, 0.01f, 99.f);
ImGui::SliderFloat("##buoyancy", &g_vehicle->m_handling->m_buoyancy, .01f, 99.f);
ImGui::EndTabItem();
}

View File

@ -38,10 +38,10 @@ namespace big
g_vehicle->m_handling->m_anti_rollbar_bias_front = fAntiRollBarBiasFront * 2;
ImGui::Text("Roll Centre Height Front");
ImGui::SliderFloat("##roll centre height front", &g_vehicle->m_handling->m_roll_centre_height_front, -.2f, .2f);
ImGui::SliderFloat("##roll centre height front", &g_vehicle->m_handling->m_roll_centre_height_front, -1.f, 1.f);
ImGui::Text("Roll Centre Height Back");
ImGui::SliderFloat("##roll centre height back", &g_vehicle->m_handling->m_roll_centre_height_rear, -.2f, .2f);
ImGui::SliderFloat("##roll centre height back", &g_vehicle->m_handling->m_roll_centre_height_rear, -1.f, 1.f);
ImGui::EndTabItem();
}

View File

@ -16,7 +16,7 @@ namespace big
ImGui::SliderFloat("##traction spring delta max", &g_vehicle->m_handling->m_traction_spring_delta_max, 0.f, 2.f);
ImGui::Text("Burnout Multiplier");
ImGui::SliderFloat("##low speed traction loss mult", &g_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 2.f);
ImGui::SliderFloat("##low speed traction loss mult", &g_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 10.f);
ImGui::Text("Camber Stiffness (grip when drifting)");
ImGui::SliderFloat("##camber stiffness", &g_vehicle->m_handling->m_camber_stiffness, -1.f, 1.f);

View File

@ -21,7 +21,7 @@ namespace big
g_vehicle->m_handling->m_drive_bias_rear = fDriveBiasRear * 2;
ImGui::Text("Steering Lock (degrees)");
ImGui::SliderAngle("##steering lock", &g_vehicle->m_handling->m_steering_lock, 0.f, 90.f);
ImGui::SliderAngle("##steering lock", &g_vehicle->m_handling->m_steering_lock, -90.f, 90.f);
ImGui::Text("Gears");
int nInitialDriveGears = g_vehicle->m_handling->m_initial_drive_gears;
@ -37,10 +37,10 @@ namespace big
ImGui::Text("Transmission Output (force)");
ImGui::SliderFloat("##initial drive force", &g_vehicle->m_handling->m_initial_drive_force, 0.01f, 2.f);
ImGui::Text("Max Velocity");
/*ImGui::Text("Max Velocity");
float fInitialDriveMaxFlatVel = g_vehicle->m_handling->m_initial_drive_max_flat_vel / float(44.444 / 160);
if (ImGui::SliderFloat("##initial drive max flat vel", &fInitialDriveMaxFlatVel, 5.f, 200.f))
g_vehicle->m_handling->m_initial_drive_max_flat_vel = fInitialDriveMaxFlatVel * float(44.444 / 160);
g_vehicle->m_handling->m_initial_drive_max_flat_vel = fInitialDriveMaxFlatVel * float(44.444 / 160);*/
ImGui::EndTabItem();
}