I'm writing a game in which moving objects leave tails behind themselves, like comets. Objects can be moved either by player input or mathematical function (e.g. on sinusoid).
I couldn't find a good way to perform this so I tried the simplest one - creating CircleShape in regular intervals in objects' positions. And it worked, because of simplicity, but later on it became a performance bottleneck. It's snappy and the tails sometimes break -
pics.
How to do it properly? Thor particles?