A 3D flight simulator built using Three.js, offering an immersive flying experience with customizable aircraft, dynamic environments, and interactive gameplay mechanics.
- Realistic Flight Physics – Simulated lift, drag, and gravity for an authentic flight experience.
- Multiple Camera Views – Toggle between first-person (cockpit view), third-person, and far third-person views.
- Interactive Shooting Mechanics – Shoot bullets with realistic projectile motion.
- Dynamic Environment – Clouds, buildings, rivers, and a detailed runway enhance the experience.
- Barrel Roll Maneuvers – Execute barrel rolls to evade obstacles and enemies.
- In-game Music Player – Built-in soundtrack with track switching.
git clone https://github.com/ShaharFullStack/3DFlightSimulator.git
cd 3DFlightSimulatorThis project is a pure JavaScript & Three.js application. Simply open the index.html file in your preferred browser:
start index.html # Windows
open index.html # macOS
xdg-open index.html # LinuxAlternatively, you can run a simple HTTP server:
npx http-serverThen open http://localhost:8080 in your browser.
- W / S – Pitch (Nose Up/Down)
- A / D – Roll (Left/Right)
- Q / E – Yaw (Turn Left/Right)
- Arrow Up/Down – Accelerate / Decelerate
- Arrow Left/Right – Adjust roll
- Space – Fire bullets
- C – Switch camera
- P – Switch plane type
- R – Perform a barrel roll
- [ / ] – Previous/Next music track
- ; – Stop music
- Three.js – 3D rendering
- JavaScript (ES6+) – Core game logic
- HTML & CSS – User interface
- Web Audio API – In-game music system
- Multiplayer mode with online dogfights
✈️ - Advanced AI-controlled enemy planes 🎯
- Additional aircraft and weapon upgrades 🚀
- Weather simulation with wind turbulence 🌪️
- Virtual Reality (VR) support 🕶️
This project is licensed under the MIT License.
Enjoy flying in the 3D Flight Simulator!