calculating PI with physics, and i wanted to recreate it in processing.
I know it would be inacurate representation of it, but i want to challenge myself.
So, how can i set force of vector to something? Pls dont post solution of this problem, so i can do it myself.
I want to apply blue square starting velocity of 1m/s, and than transfer it to white object and so on.
Also you should know not all elastic collisions are handled the same and it’s important you find a solution that matches the one in this video. I’d check the links in the video description
@TfGuy44 's demo helps you see one or two digits. A solution that will allow you to view 4+ digits in a reasonable amount of time (and have the bounces appear within the horizontal screen space) is going to have to incorporate things that account for the exponential number of frames to display it.
There are many ways to approach that. For example, have simulate loop n number of times in a single frame,
The video renders e.g. 314 clacks, then shows them again in slow motion, then shows them in groups of billion billions.
I was suggesting some ways to produce output like the video output, “recreate it in processing” – which was your question. Some ideas are multi-pass frames (which could be algorithmic), scaling, and frameRate control.