Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How to create simple but realistic looking flight simulation from scratch with C++.



It probably wasn't a question :) but piling on: https://github.com/YSFlight-opensource/YSFLIGHT


> YSFlight

I'm aware of YSFlight (used it since 2015), but it has a lot of issues and repo does not include whole commits history (it was opensourced year ago as a snapshot of latest version code base with few commits on top of it), so might be not a good example of simple flight simulator.

Physics of YSFlight described in community fork repo.[0]

Till YSFlight became open-source, its physics was a "black box" and there was a research on reverse engineering its physics using game data logs.[1]

Also, there is another fork with few fixes & enhancements, including in its flight simulator physics engine.[2]

[0] https://github.com/YSCEDC/YSCE/blob/master/Documentation/YSF...

[1] https://sites.google.com/site/ysdecaff/ysflight-scientific-r...

[2] https://github.com/pasutisu/YSFLIGHT


There is also FlightGear[0] which is FOSS[1].

I cannot judge how realistic its physics engine is, but it is marketed as a ‘professional’ flight simulator.

[0]: https://www.flightgear.org/ [1]: https://sourceforge.net/projects/flightgear/


“Too realistic,” I’d say - it’s the only FS where I was never able to take off in a Cessna 172. (Even after having flown a real one.)


FlightGear is not "simple".




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: