This reminds me of writing physics in game engines.
I left games, of course, and after various shenanigans ended up writing facial recognition software. Surprised everyone and became the project lead, nobody was even close in the technical real time simulation requirements space that FR requires.