What is the recommended way to create "motion lines"?

Hello everyone,

I’m wondering what is the recommended way to create “motion lines” , am talking about something similar to this video here is a still image for anyone not wanting to watch it, in game development we call them “trail effects” but its not that easy to make them behave like they do in these “simple” After Effect tutorials (how their length adjust based on the motion, etc…)

So can anyone let me know what’s the best method here ? also what do the “3D community” properly call them so i can make better research ?