# 3D player movement with Unity's new input system

So, I trying to get used to the new Unity input system. "Back in the days" I just got the Vertical/Horizontal axis, put them into a Vector3, multiplied them by a certain value and then moves the player.

Now, with the new input system, that changed quite a bit. So, what I'm trying to do is, to get the input of a 2D Vector, earlier called DPAD in the new system. My approach was, like

private void Awake() {
}

private void OnMovement(Vector2 _dir) {
moveDirection = _dir;
}

//This performed in FixedUpdate
private void Move() {
transform.position += moveDirection * moveSpeed * Time.deltaTime;
}


Buut, you know, kinda worked, but not really. The player did unintended things like keep moving or not reacting at all to my button press. Maybe I set something wrong up. You might help me please, thanks!

• Is this a top down game, or a platformer or something else? – Millard Aug 31 '19 at 13:24
• You can switch between top down and ego – Mirco Sep 16 '19 at 17:46