Trail-behaviour for tail in skeletal mesh animation

How can I animate a tail similar to the Trail Controller in Unreal so that it moves realistically delayed whenever my dragon character works around a corner?

I tried to Google the issue but couldn’t find any solutions that wouldn’t require me to pay a lot of money.

Have you tried to use a mesh collider?