How does the code for this situation be organized through the player's control of exerting physical force

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By haizhou37

According to general development experience, the game logic and input detection are run in _ process, and the force is applied in _ physics_process, so how should this be separated in programming to achieve the effect mentioned at the beginning
In other words, how to make input judgment execute in process but adding force execute in physics process.

enter image description here

haizhou37 | 2018-10-29 12:47