I’m trying to recreate a 2D physics simulator I saw on Instagram consisting of spring, solid hallow semi circle that rocks and rolls and a sphere inside the hollow semi-circle attached to mass with gravity. Today, I couldn’t get done much since I didn’t have enough knowledge so I had to learn many new things like weighted average, moment of inertia and finally derived equation for COM (Center of mass) of the hollow solid semi-circle after watching some physics video in YouTube.