Questions tagged [mouse-position]
197 questions
0
votes
1 answer
Get touch position on element when parent/body has scale transformation
I need to get the exact mouse/touch position from the left border of an element on move.
The problem is, that my body is scaled down with transform:scale() depending on window/device size.
The touch- and mouse-events x, pageX, and clientX properties…

Getter Jetter
- 2,033
- 1
- 16
- 37
0
votes
1 answer
Unity: How Do I Center A Mouse To A 3D Player Using Vector3.MoveTowards()?
I am currently using mouse inputs to move a player (sphere) in a 3d world. I am doing this with a raycast and using the hit.point coordinates. This is the way I want my game to work, but it is a 3d game, so whenever I move the player, using the…

Bradley William Elko
- 364
- 2
- 24
0
votes
0 answers
Storing the mouse/cursor positions in an array or list during mouse move event
I've created a windows forms application that allows the user to paint/draw on a panel. I've been trying to retrieve the mouse or cursor positions (x, y) relative to the panel while the user is moving the mouse, and store these into an array or…

BBaire
- 71
- 3
0
votes
2 answers
Get mouse position in world space
I'm making a game using Unity and I have a little issue, I need to know the mouse position in world space, for that I try to set a GameObject at the mouse position using this code :
Vector3 p = Input.mousePosition;
Vector3 pos =…

Julien Renaud Le Coq
- 1
- 1
- 1
- 2
0
votes
1 answer
Making my own tooltip jquery plugin - relative to mouse, how to know where the mouse is?
ok, basically i made 2 functions: show tooltip and hide tooltip and it can get ajax config or simple config, i just show you: