Home▸Everyday Physics▸Center Of Gravity Balance

Center of Gravity & Balance (2D)

Interactive 2D center-of-gravity simulator: stack three blocks, adjust their masses and offsets, and watch the real torque-balance math decide when the stack tips over.

Everyday Physics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-3d-center-of-gravity-balance ↗ Open standalone

This 2D simulator draws the classic block-stacking overhang problem from the side: block A rests on a table, block B rests on A, and block C rests on B, each free to slide sideways and each with its own adjustable mass. Every animation frame recomputes the real mass-weighted center of mass at each joint — B+C combined over A's edge, C alone over B's edge, and the whole stack over the table — so you can see exactly how far each margin is from zero before slider input even changes it, purely from shifting how the total weight is distributed. Push any margin past zero and torque wins: that block rotates off and falls, exactly as real torque balance predicts.

⚙ Under the hood

Stack three adjustable-mass blocks side-on and watch real mass-weighted torque balance decide, joint by joint, when the tower tips over.

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)