Drag the fulcrum (triangle) and boxes around. Change the boxes’ weight. Click start to begin the simulation, and restart to reset everything and try out another setup. I used pen for the lever itself because you can slide the fulcrum and that changes the rotation point of the lever.
100% by me. Read the formula in a book somewhere. I reduced all of the outputs by a lot since it rotates super fast when they are at full power, so technically they are accurate but this isn’t how a real lever would act in the world with a gravity of 10m/s^2 and friction. I have no idea why the boxes slightly slide up and down the lever. The sin() and cos() functions should position the boxes correctly, but they don’t. For now, just imagine the boxes don’t slide.