Get Object to rotate around an ellipse depending on cursor position?

I’m making a 2D platformer, and I can’t figure out how to rotate an object around the player depending on where the cursor is. I want the object being rotated to look at the cursor, and the object to go around the player. Here is kinda what I mean77525-untitled-2.png

I’m using C#, thanks!

Hello there.

OK, you need to work around look at, you can get the mouse/touch (if it is for mobil) screen position and convert it to world position, this way you can tell to object where to look, check the documentation about it, cheers.