Search Unity

Bug Things work when graph open

Discussion in 'Visual Scripting' started by TheKrazyDev, May 14, 2022.

  1. TheKrazyDev

    TheKrazyDev

    Joined:
    Sep 8, 2021
    Posts:
    107
    The title is weird i know but its true. I'm making an fps which, of course needs jumping. So I threw together a jump. Only thing is once I close the graph my players jump is like really week, but I open the graph and its instantly stronger? I dont understand, a similar thing accrued with my wall slide only with the rotation.
     
  2. Hikiko66

    Hikiko66

    Joined:
    May 5, 2013
    Posts:
    1,304
    Is your code frame rate independent? You are using time.deltatime?
     
  3. TheKrazyDev

    TheKrazyDev

    Joined:
    Sep 8, 2021
    Posts:
    107
    Yea I send all my inputs and gravity values into a vector3 then multiply that by time.DeltaTime then send that to CharacterController.Move. Do I need to change my gravity var by time.delta time as well?