#Looking
1 messages · Page 1 of 1 (latest)
If the controls already work, theoretically you can just replace the movement vector with the mouse axis stuff
Do I do that in the code, or the Input System?
Oh if it’s the input system, I have no idea then
Wait, he didn't put the looking in the input system, he just coded it like that.
Where do you handle controls? It doesn't appear to be in that snip?
Input System
Yeh but I don't see where you are referencing it?
Tbh I've been on the new input system for a while. Can you just directly access the 2D by referencing it with "currentMovement"?
idk following a tutorial
I don't know if I am missing something but where do you set "isMovementPressed"?
idk following a tutorial. I just need this fixed
@south fern How do I do that?
I’m only familiar with the old input manager… but you just have to figure out how to get a vector2 from the mouse axis. And then it’s an easy swap of the two vectors
I don't know your type of game... Do you want it to move with mouse movement or move depending on where the mouse is pointing?
Example FPS where you rotate mouse
or overhead where you look at the point the mouse is at?
Alright 1 second, I'll try to write something with the new controller
Man I haven't actually done FPS mouse movement...
I think you can get the position like this
Vector2 mousePosition = Mouse.current.position.ReadValue();
And I guess you can use that to determine where the mouse has moved? And then maybe reset the position to Vector2.zero if it allows it?