Search Unity

Is frame delta accounted for in Mouse current delta?

Discussion in 'Input System' started by Tomnnn, Aug 5, 2020.

  1. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Hey. Checking out the new input system (haven't used unity in a while) and wondering if I should multiply any readings from InputSystem by Time.deltaTime or if some sensitivity / scaling multiplier is sufficient.

    Also wondering if I want to collect these deltas in update and then apply them in fixed update?

    Thanks.
     
  2. nongbenzgames

    nongbenzgames

    Joined:
    Oct 8, 2018
    Posts:
    19
    InputSystem deltas show change over time anyway so I don't think you'll have to factor in deltaTime.

    Think of it like this, a player can move the mouse further over a longer deltaTime. Multiplying by the deltaTime will just exaggerate longer frame movements.
     
  3. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Alright, I'll start without it and see how that pans out, thanks. It was hard to tell just from messing around in the editor.