This car physics simulation project utilizes Java and JavaFX to create a dynamic simulation considering car weight, mass, friction coefficients, and more. It incorporates an interactive sidebar for user control, terrain selection, and graphical representation of key physics variables.
The controls for the simulation are straightforward:
Up Arrow
: Apply throttleDown Arrow
: Apply brakesLeft Arrow
: Steer leftRight Arrow
: Steer right
-
Sidebar Interface:
- Adjust engine power, car weight, and zoom intensity using sliders.
- Select terrain among asphalt, gravel, and ice.
-
Graphs Display:
- Visualization of acceleration, velocity, position, speed, and throttle changes over time.
-
Main Canvas:
- Displays the live simulation of car physics considering the chosen parameters.
If you encounter issues:
- Simulation Not Starting:
- Ensure Java and JavaFX are properly installed and updated.
- Check console for error messages that might indicate missing dependencies or code issues.
- Controls Not Responding:
- Verify keyboard inputs are not conflicting with other applications.
- Check for any errors in the code related to input handling.
- Car Physics Formulas Reference: This resource contains essential physics formulas used in the simulation.
Feel free to refer to the provided resources and follow the instructions for an optimized experience.