People have made cool racing education simulators with this too: https://github.com/FT-Autonomous/ft_grandprix.
This is what StuffMadeHere used in his latest video to simulate a mini-golf course! https://www.youtube.com/watch?v=2OfjZ3ORJfc&t=368s
The physics engine I'm using is called MuJoCo. And if you're wondering why I didn't write my own physics engine, it's basically because I don't have 20 years.