I have a point let's say A, and I'm trying to calculate its position under the effect of different forces in a way that its distance to a point B stays fixed as if they were attached by a string.
One initial approach I thought of is to calculate its position without the distance constraints and then project that point onto the circumference which has B as center and passes by A. But I don't think that this approach would be right in all situations.
I tried looking online but I couldn't find any helpful hints, What is a good approach to this problem?