Answer the question
In order to leave comments, you need to log in
What is the best way to implement character movement in Unity?
Let's say I have some move code wrapped in the Move method.
What is the best way to call this method?
void FixedUpdate()
{
if(Input.GetKey(Keycode.A))
Move;
}
orvoid Update()
{
if(Input.GetKey(Keycode.A))
Move;
}
Answer the question
In order to leave comments, you need to log in
It is enough to read how these two methods differ and turn on the brain a little. There is even a picture somewhere in the manuals about the standard game loop, what is called when and when it is BETTER to check.
And if you open the documentation on Input.GetKey
, then the question itself will disappear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question