What's a solid way to have a character stuck to another one?
I have a moving character (say followed) and I want a second one (say follower) to follow the first without chance of getting stuck into obstacles.
I thought that I could save every delta velocity vector of the followed and having the follower consuming one each frame after it reached its target's starting position.
More to say, dynamic obstacles could be an issue.
Since this sounds to me like a common topic (despite the fact that I'm having difficulties in finding answers), is there anyone who could enlighten me on a proper way of facing the issue?
Edit:
Since I'd like to describe something more like to an edge case of a pathfinding algorithm, consider the following:
- follower should always be at a fixed position related to followed
- follower must not necessarily interact with the environment the way followed does