samspade
Member
I'm trying to create an object which has other objects following behind it at a set distance along it's exact path. Following an object in its exact path is no problem, but I'm having trouble with the set distance. These are the things I've tried:
- Put each objects x and y location into a queue and have its follower pull from that queue. This works just fine for following but distance is inconsistent. If the 'head' object moves faster or slower it's various parts bunch up or separate. If 'head' object moves fast enough then there will be a great deal of separation between each following object.
- Store the movement vector and pass that along. Then have each follower placed at a set distance along that vector. This works, but looks weird. If the 'head' object makes a big loop, the followers will make that same loop but it will be smaller.
- Create a particle trail. This is the worst of the solutions. Even if you do a fake particle trail and use objecs so you can interact with them, because you are always deleting them it causes a lot of problems.