Search Unity

Saving movement from inputs and other forces in a list and run it each fixedupdate?

Discussion in 'Scripting' started by Deleted User, Feb 13, 2016.

  1. Deleted User

    Deleted User

    Guest

    I have read that fixedupdate does not run consistently so some frames it will not run at all and other times several times per frame. In order to make the game consistent I was thinking I could save the movement inputs from the player and other forces in a queue and execute everything in the queue in the fixedupdate method and it will clear itself. Would this be a good idea?
     
    Last edited by a moderator: Feb 13, 2016