Search Unity

Velocity being (accumulated) applied while Unity is in background

Discussion in 'Visual Scripting' started by McGravity, May 1, 2021.

  1. McGravity

    McGravity

    Joined:
    Nov 2, 2013
    Posts:
    60
    Hi,

    Bolt is running some FlowState in which velocity is applied to a Rigidbody. When I switch to my IDE Unity is put to background. When switching back to Unity after some time it looks like all the velocity is applied at once. In my Payer Settings I don't have the run in background option selected. I'm using Bolt 1.4.15 and Unity 2019.4.25f1 LTS.

    Is this known and expected behaviour or do I have configured anything wrong?

    greetings
     
  2. McGravity

    McGravity

    Joined:
    Nov 2, 2013
    Posts:
    60
    I was being stupid. I scaled the force vector by fixedUnscaledDeltaTime instead of fixedDeltaTime.