zaccybot2:
You can find any version of the source code on the game's GitHub page (here). The air calculation is in src\simulation\Air.cpp under the function update_air.
I know this isn't very helpful but: Good luck. Even the devs have a little trouble understanding exactly what it does :P
Videogamer555:
zaccybot2:
You can find any version of the source code on the game's GitHub page (here). The air calculation is in src\simulation\Air.cpp under the function update_air.
Trying to figure out the "//update velocity and pressure" part of this. The "//pressure adjustments from velocity" and "//velocity adjustments from pressure" make sense. However, I'm not understanding what the 3rd step does, where it simultaneously updates both pressure and velocity.
Try to comment it out and try running the code, you could have an idea of its use, I guess.
moonheart08:
I know this isn't very helpful but: Good luck. Even the devs have a little trouble understanding exactly what it does :P
Yea, i'm saying the guy who wrote the code doesn't dev TPT anymore. and well yea jacob1 and mniip explained what i ment.
The model is not particularly physically accurate, because that's not the goal. (The goal is to look really good.) However, it's not completely divorced from the underlying physics. The third step does a few things:
Overall, those two operations are responsible for vorticity in TPT.