Live data from Hacker News

Simple Physics-based Flight Simulation with C++

jakobmaier.at

11–19 of 19 posts

Re: Simple Physics-based Flight Simulation with C++

#11
post #4

Nice! Reminds me of this amazing (for the time) book which taught me a ton about the topic when I was in my first year at uni learning c++ https://books.google.at/books/about/Flights_of_Fantasy.html?...

Wow. "Using Borland C++ compiler and BASM assembler as a programming platform". I had to get this just to see what the code was like back in 1993... Luckily/unluckily I got started on silicon graphics machines, so never needed to perform the heroic hoop-jumping that 3d engines needed on pcs at the time.

This will go nicely with "Methods of Orbit Determination for the Micro Computer" (1991) which published by AFIT and has some incredibly useful simulation content...with examples in BASIC

Re: Simple Physics-based Flight Simulation with C++

#12
post #5

Earlier quoted context omitted.

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 the…

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/

Re: Simple Physics-based Flight Simulation with C++

#14
post #4

Nice! Reminds me of this amazing (for the time) book which taught me a ton about the topic when I was in my first year at uni learning c++ https://books.google.at/books/about/Flights_of_Fantasy.html?...

the book can be borrowed at the Internet Archive: https://archive.org/details/flightsoffantasy00lamp

Re: Simple Physics-based Flight Simulation with C++

#15

Earlier quoted context omitted.

> 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 the…

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/

FlightGear is not "simple".

Re: Simple Physics-based Flight Simulation with C++

#17
post #4

Nice! Reminds me of this amazing (for the time) book which taught me a ton about the topic when I was in my first year at uni learning c++ https://books.google.at/books/about/Flights_of_Fantasy.html?...

The same author has another book from around the same time called "Gardens of Imagination" which explains how to write a Wolfenstein 3d-style raycaster. I can highly recommend that book as well.

Great book! Helped me finally understand how to implement variable height walls in the raycaster for my current game.

Re: Simple Physics-based Flight Simulation with C++

#18

Earlier quoted context omitted.

> 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 the…

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.)

Re: Simple Physics-based Flight Simulation with C++

#19

I struggled to understand the coordinate system, probably because he puts the ailerons in front of the wings!

You are right, the ailerons are really in front of the wings, which if of course wrong. I will update this and add some info on the coordinate system!
Post reply on HN