Free fall

Free fall preview
remixableManimCEmanim-physics2Dgravity

manim/free_fall.py

"""Free fall: a heavy body and a light one, dropped together.

Solved once and played back, like everything in the library that simulates.

Render (the driver does this for every palette; these are for eyeballing):
    P=/opt/homebrew/opt/python@3.11/bin/python3.11
    ASSET_MODE=still  $P -m manim -s -t -r 1600,1600 manim/free_fall.py FreeFall
    ASSET_MODE=motion $P -m manim -qh   -r 1080,1080 manim/free_fall.py FreeFallLoop
"""

import numpy as np
from manim import (
    DOWN,
    LEFT,
    RIGHT,
    UP,

The full Manim source and the rendered video come with a plan.