Get Mouse Movement Direction

Looking for a way to figure out which direction the mouse was moved, out of up, down, left, or right. I have tried numerous ways to math it out, but if I print to see the mouse’s vector from either platform or viewport it doesn’t seem to indicate how it’s actually moving. The X value seems to increase and decrease on either regardless of which axis I actually move the mouse on. Thanks in advance.

Could you post your node setup? The x-axis describes movement horizontally on your table and the y-axis vertical movement on your table.

1 Like

It should be just this:

image

Measure which delta is greater - either X or Y. There’s probably a bunch of different ways, this seems to work OK:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.