- Home /
Input.GetAxis not being called every called every frame
Ok so I've got a pretty simple movement script going in unity but I'm trying to have the player stop not immediately but somewhat quickly when the players not trying to move them to the left or right. To do this I'm affecting the players drag value depending on the Input.GetAxis("Horizontal") value. Although, for some reason, the player will continue to slide for a bit before the drag is actually applied. Here is my code for clarification.
Answer by Fariborzzn · Dec 21, 2019 at 04:18 AM
I believe your issue Is implementing Getaxis in FixedUpdate always check for input in Update Function. FixedUpdate is for implementing Physic Function.
Your answer
Follow this Question
Related Questions
Drag Objects with mouse? 2 Answers
How to Touch Drag 3D Objects 2 Answers
Move a cube with mouse relative to the camera rotation 0 Answers
Move object with physic with drag 0 Answers