Skip to content

A more advanced vehicle controller for the Godot game engine.

License

Notifications You must be signed in to change notification settings

Dechode/Godot-Advanced-Vehicle

Repository files navigation

Godot Advanced Vehicle

A more advanced car controller for the Godot game engine.

Description

Custom rigidbody car controller with raycast suspension for the Godot game engine. This one is more realistic than the built-in vehiclebody with wheelcolliders. This project will be a small demo of the vehicle physics i have been able to craft so far.

Features:

  • RWD, FWD and AWD drivetypes available
  • Pacejka and brush tire model available.
  • Tire wear
  • Fuel consumption using BSFC
  • Choose between preloaded limited slip diff, open diff and locked diff/solid axle
  • Manual clutch with adjustable clutch friction force
  • Manual and automatic gearbox

This project would not have been possible without Wolfes written tutorial of his own car simulator physics. Also huge thank you to Bastiaan Olij for his vehicle demo. See the links in the Acknowledments section for more info.

Controls

Keyboard:

  • Arrow keys for throttle, brake and steering
  • Space for handbrake
  • A for upshifting and Z for downshifting
  • c for clutch

Xbox controller:

  • R2 for throttle and L2 for braking
  • Left analog stick for steering
  • A button for upshifting and X button for downshifting
  • B button for handbrake
  • LB for clutch

Help

Make sure the physics FPS is set to atleast 120 or the physics start to get weird. In this project it is set to 240.

License

This project is licensed under the MIT License - see the LICENSE.md file for details. This project also contains models and textures owned by their authors. See links below for exact licenses.

Engine sound sample found in /sounds folder is made with enginesound, available from https://github.com/DasEtwas/enginesound. The sound sample itself is licensed under cc0.

Acknowledgments

About

A more advanced vehicle controller for the Godot game engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published