Switching to new Input System Component

I had this working, then like a fool I decided to try it in the new Input System.

I have it working again, but it left me with a question.

What is the difference between updating the velocity in FixedUpdate() versus Update()? Even without a Time.deltaTime multiplier in Update(), they seemed the same.

Hi,

Actually, the stuff involving the Rigidbody2D object should be used in FixedUpdate, not Update. For simplicity, we use the Update function. For velocity, there should not be any noticeable difference. The Rigidbody2D component does the maths for us and takes the framerate into consideration.

Is this what you wanted to know?


See also:

Yes, thank you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms