How can i get the direction of the mousecursor?

How can i get the direction of the mousecursor?

Mouse.Hit could work maybe

We could use this simple method.

(mouse.Hit.p - origin).Unit * range -- origin should be the Vector3 origin of the direction, range should be how far it'll go

Or if that doesn’t work, then try this:

-(mouse.Hit.p - origin).Unit * range -- origin should be the Vector3 origin of the direction, range should be how far it'll go

EDIT 1: Did some fixing cause I did an oopsie

1 Like