A = (5.0, 5.0)
B = (7.5.0, 5.0)
C = (10.0, 5.0)
D = (5.0, 10.0)
E = (0.0, 5.0)
F = (5.0, 0.0)
static A
static C
static D
static E
static F
show circle A radius 2.5
constraint distance A B == 2.5
constraint force C B fun (t) -> sin(tau/4 + tau * 0.5 * t)
constraint force F B fun (t) -> sin(0 + tau * 0.5 * t)
constraint force E B fun (t) -> sin(tau*3/4 + tau * 0.5 * t)
constraint force D B fun (t) -> sin(tau/2 + tau * 0.5 * t)
cd code
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 code/constraint_based_simulator/main.py