Okay I think now I got something that's very close to what I want.
My vectors consist of x and y coordinates
O = Object-Vector
M = Mouse-Vector
P = Player-Vector
r = radius
and this is what my algo comes down to:
O = P + r * (P - M) / (|P| - |M|)
It works flawless...except that it doesn't gimme the coords of the circle-side facing the mouse...instead it gives me the coordinates on the other side of the circle. Any ideas on how to fix it?
Greets,
Finn
PS: You helped me alot so far, you're great!
)
EDIT: GOT IT!! Changed to :
O = P - r * (P - M) / (|P| - |M|)