• by diegomacario on 7/2/2020, 11:54:07 AM

    Hi everyone!

    I'm the author of this project. I wrote it because I was very curious about physics simulation, and also because I wanted a reason to study a few libraries that I had never worked with like Qt.

    In the readme I tried to explain all the details of how the simulator works. If you don't have time to read it, at least take a look at the GIFs in it. They showcase everything that the simulator can do.

  • by gmurphy on 7/3/2020, 8:18:05 PM

    This is great! One very naive (I'm trying to learn) question:

    You have a fixed timestep for good reason, which works great if you're displaying by doing interpolation (your display frames lag the physics and are 'catching up' to them), but in some cases where you want low latency in response to player input you might want extrapolation (your display frames are ahead of the physics engine).

    I believe people typically do extrapolation by projecting forward any motion in a linear fashion, but it seems this would result in occasional weirdness like geometry intersection. One solution might be to run the physics engine at a fixed timestep for the 'real' changes, but let the graphics engine use the physics engine at a non-fixed timestep to do the extrapolation, where the results of that simulation are not taken into account for the fixed timestep frames.

    Is that possible in Dyna-Kinematics, and/or am I talking nonsense? :)

  • by waltbosz on 7/3/2020, 8:45:35 PM

    Did anyone else spend hours of their childhood playing The Incredible Machine ? Anytime I read about a 2D physics simulator, I can't help but think of that game.

  • by bsenftner on 7/4/2020, 5:41:32 AM

    Does the Visual Studio project require QT be pre-installed? I don't see libs or headers in the dependencies, and I don't have QT on my dev system. So the project does not compile.

  • by prox on 7/3/2020, 5:40:24 PM

    Fun and informative, a great combination!

  • by chrisbennet on 7/3/2020, 7:36:01 PM

    This is really awesome!

  • by Karmic_Clash on 7/3/2020, 8:51:37 AM

    Looks very cool!