Custom 3D Car - Godot

For this Godot project, I made a custom wheel system from the ground up, designed to deliver a customizable and engaging driving experience.

I made a custom Wheel class that simulates semi-realistic car wheel physics using RayCast3D nodes for ground detection. It handles suspension, acceleration, steering, and various friction forces.

Detailed Wheel Simulation

Each wheel is individually simulated to provide authentic car behavior:

  • Suspension: A spring and damper system for each wheel effectively handles bumps and uneven terrain, ensuring a smooth ride.
  • Traction and Steering: Realistic acceleration and steering forces are applied to the wheels, allowing for precise control and dynamic maneuvers.
  • Friction: Both rolling friction and lateral friction are meticulously simulated to provide a realistic driving feel, preventing unnatural sliding.

Dynamic Camera

The simulation features an orbiting camera that intelligently follows the car. Players can control the camera's perspective with the mouse, and it automatically rotates to align with the car's direction when moving, enhancing immersion.

Sound Effects

To further enhance realism, the simulation includes dynamic sound effects. The engine sounds change convincingly with speed and acceleration, providing auditory feedback, and collision sounds add impact to the driving experience.

This custom made system was key to achieving a responsive and authentic driving experience, offering precise control over car behavior for use in any vehicle project in the future.