I have created Apex Drive 3D, a 3D Car Driving & Physics Simulator built with React, Three.js, Tailwind CSS, and Web Audio API.
🚗 Key Features Implemented:
-
5 High-Performance Custom Vehicles:
- Apex GT-R Hyper: High top speed supercar with balanced handling.
- Silvia Spec-R Drift: Lightweight rear-wheel drive sliding champion.
- Raptor 4x4 Off-Road: High suspension travel rugged SUV.
- F1 Stealth Speeder: Formula car with extreme cornering downforce.
- V8 Interceptor Classic: Heavy American muscle with roaring torque.
-
Full Vehicle Customizer & Tuning Garage:
- Body Paint & Finishes: Color presets with Gloss, Metallic, Matte, and Chameleon finish options.
- Neon Underglow: Custom underglow lighting bars under the vehicle.
- Performance Tuning: Adjustable Engine Power, Tire Traction, and Steering Lock speed sliders.
-
3 Interactive Maps & Environments:
- Cyber Neon City: Multi-lane grid streets, skyscrapers with glowing billboards, traffic cars, tunnels, and speed traps.
- Mountain Touge Pass: Winding serpentine roads, elevation changes, cliffs, guardrails, and scenic pine forests.
- Stunt Playground Arena: 360° loops, mega launch jump ramps, half-pipes, and giant bowling pins to knock down.
-
Dynamic Physics & Telemetry Engine:
- Realistic acceleration, smooth braking, handbrake drifting with angle detection and score combo multipliers.
- Speedometer (switchable between KM/H and MPH), RPM gauge with automatic gear shifting (Reverse, D1-D6).
- Nitro (NOS) boost system with dynamic camera motion blur and exhaust flame trails.
- Suspension body pitch/roll dynamics under cornering and airtime jump landings.
- Real-time collision detection and rebound response.
-
Procedural Web Audio API Sound Synthesizer:
- RPM-scaled engine audio with multi-harmonic overtones.
- Gear shift exhaust backfire pops and turbo blowoff valve noises.
- Tire screeching during drifts, collision impact sounds, and horn.
- Interactive Car Radio Tuner with 4 procedural synthesized music channels (Synthwave 80s, Cyberpunk DNB, Rock Highway, Lofi Chill).
-
5 Camera View Perspectives:
- Chase Cam 1 (Smooth Dynamic Third Person), Close Cam, Cockpit View (First-person interior with steering wheel), Hood/Bumper Cam, and Orbit 360° Drag Cam.
-
Dynamic Environment & Weather System:
- Time of Day toggles (Daylight, Sunset, Cyber Night).
- Weather conditions (Clear Sky, Heavy Rain, Foggy Mist, Snowfall).
-
Rich Controls & HUD Overlay:
- Sports instrument cluster HUD, 2D Radar Minimap with player orientation and traffic dots.
- On-screen touch overlay for mobile devices & tablet support.
- Keyboard hotkeys (
W/A/S/D or Arrows for driving, Space for drift, Shift/Tab for NOS, C for Camera, L for Lights, H for Horn, R to Reset).
Files built: index.html, src/types/simulator.ts, src/audio/soundEngine.ts, src/simulator/CarBuilder.ts, src/simulator/MapGenerator.ts, src/simulator/TrafficSystem.ts, src/simulator/PhysicsEngine.ts, src/components/DashboardHUD.tsx, src/components/Minimap.tsx, src/components/TouchControls.tsx, src/components/CustomizerModal.tsx, src/simulator/CarData.ts, src/components/MapSelectorModal.tsx, src/components/RadioPlayer.tsx, src/components/ControlsModal.tsx, src/components/MissionOverlay.tsx, src/components/SimulatorCanvas.tsx, src/components/SettingsModal.tsx, src/App.tsx