The red block moves with the mouse. When the mouse approaches the black square, it is necessary to make the red square turn in the direction of the black square.
Tell me how this can be done?
I create a black and a red square using the geometry artirubut - position