Avatar

Temporalin

Temporalin@programming.dev
Joined
0 posts • 14 comments
Direct message

OP says the kid has been “all over scratch” so we can assume they need something more

permalink
report
parent
reply

I forgot most of my simulation subject, but we did a 2D particle simulator and yes, you will need Navier-Stokes if you want the effect to be physically correct. You will need to solve a numerical problem each frame to compute turbulences. Wind is a force with a source that will propagate depending on its parameters (like viscosity)

If you don’t implement that, you won’t be able to implement things like walls that block wind and such, which I guess is something you might had in mind. Also, having a changing environment is probably pretty hard, so prepare yourself.

I just took a look at the source code of The Powder Toy, and the class Air (src/simulation/Air.hpp/cpp) seems to implement what you need. Sadly it is not very well documented, so you’d have to work out the relation between code and physical formulation.

Sometimes physically incorrect simulations are easier to implement, have lighter computations, give the designer more control of the game, and makes the player able to better predict how the game will behave and have more fun.

permalink
report
reply

It’s another Chromium/Electron based app, so it may not be suitable for low end systems, but still, it’s weird that it doesn’t load at all. I don’t know how to help, sorry.

permalink
report
parent
reply

I find it pretty inefficient to start up a Python environment, a web server and a web browser to do something that you could do with Notepad or even in a terminal. I would use Notepad++, gedit, Kate, vim, vscodium… There are plugins for vscodium (and vscode obviously) to preview Markdown if that’s what you need

permalink
report
reply