The movement of the box behind the cursor

Hello everyone!
Happy New Year!

I made a test scene.

It is turns with buttons.

The box on the stage is moved by moving the mouse while holding down the left button.

If the scene is not rotated, the box follows the cursor.

If the scene is rotated 90 degrees, the box will continue to move along the same axes as before.

That is, the mouse moves to the left, the box moves up, and so on.

What’s the best way to make the box always follow the mouse?

Rotate the box?

Or change the direction of the impulse?

The drag-and-drop option for box is not suitable, as i want the box to shuffle just when i move the cursor.

1 Like

i have idea wait me to prepare that

1 Like



It is very cool! Thanks a lot!