Does it make a difference whether I put if Input.is_action_pressed("move_right"): inside _process or _physics_process?

My thought is, that putting the input handling in _physics_process might feel a bit less responsive if the games runs for example with 200fps and the physics update happens only every 30 or 60 frames?

But I guess you have to move a characterbody3d in the _physics_process anyway to get correct collisions, so you won't benefit from getting the input in _process?

Does one have anything to do with the other? Somehow this confuses me.
Some insight would really help me to understand and remember this.

  • xyz replied to this.
  • trizZzle It will sound obvious but - query the action state wherever you need it.

    trizZzle It will sound obvious but - query the action state wherever you need it.

      xyz well, it might be obvious, but it's good to hear it again as a reminder to not complicate things. 😄