Hi, I have a need to understand the calculations and build an more complex simulation of two objects (or more) doing circular motion on each other ( constant changing the motion based on the target position ). So :

1) The two objects start in random positions/speed/direction in space ( no gravity or any force in this universe ).
2) The user can then input an behavior in the object A in order for it to do an circular motion into object B ( orbit at x meters for exemple ). And also vice-versa on B, for it to orbit A on an determined distance.

I am not sure if its clear, I imagine an simulation with two points in 3d or 2d space going in random direction/speed, and then this object can apply forces to itself in order to try to keep an orbit to object B, like it was ships in space.

I would be very impressed to see it ! And would love to see the equations !