mouse tracking

Hello,

first of all I am sorry if this question has been asked.

I am new on touch designer and I realize my first small project but I am lost.

I’m looking to make a little fish that follows the movement of my mouse in 2D

I managed to move my little fish but I can not do the rotation for the fish to follow my mouse

how can I do that?

Thanks for your help

here’s an example which rotates a Geo COMP with the ‘fish’ over it’s y-axis when the mouse changes horizontal direction. Click the plus sign to activate the viewer pane and move the mouse over the container.

Also for future reference if you want to select items with your mouse in 3d, see the Renderpicking DAT example in Help->Operator snippets (which is a very valuable resource to get to know many operators in TD)
follow_mouse.tox (1.93 KB)