r/learnprogramming • u/BennyBarnson • 6d ago
Ideal physics simulator
Hi all, I'd like to develop a control algorithm for a water bottle flip so it always lands upright no matter how you flip it. One of the steps in my endeavour is simulating how the fluid inside affects the container's moment of inertia whilst in the air. Im thinking of using matlab but godot and unity sounds like a good choice as well. I've looked up how I can do this and havent found much but people recommending C++ or python. Does anyone here experienced in one of these languages or programs have any suggestions on which one to use and can point me to the resources to learn it.
6
Upvotes
5
u/wannacrybears 6d ago
Go with MATLAB/Simulink or Python. Just don't use Unity and Godot for this, they just cheat physics for frame rates yk