A web-based 3D flight simulator featuring an F-22 Raptor, built with Three.js. Try it out at https://chiarng.github.io/flightsim/
- Realistic 3D F-22 Raptor model
- Physics-based flight controls
- Washington state-inspired terrain with mountains and water
- Seattle-like cityscape with Space Needle
- Evergreen forest environment
- Dynamic cloud system
- Heads-up display (HUD) with flight data
- Gatling gun with visual effects
- W/S - Pitch Up/Down
- A/D - Roll Left/Right
- Q/E - Yaw Left/Right
- ↑/↓ - Throttle Up/Down
- Space - Fire Gatling Gun
- Z - Level Aircraft (smoothly returns to level flight)
The simulator is built using:
- Three.js for 3D rendering
- Custom physics system for flight dynamics
- Procedurally generated terrain and environment
- Real-time control indicators
To run the simulator locally:
- Clone the repository
- Start a local web server (e.g.,
python3 -m http.server 8000) - Open
http://localhost:8000in your browser
MIT License - feel free to use and modify!