Game character (player) - first-person control (Godot 3)

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

In Godot 2.1 I used the script for control in the first person (WASD+Space+mouse) which borrowed in some project. The essence of the script was to calculate the force and vector and the use of this force to the “body” (RigidBody). I slightly modified that script, but I was never sure it was the best solution. Now, after exporting to Godot 3, I can’t get it to work properly at all.

Here I want to ask for help:

  1. Tell me what the physical body is optimally used to create the game character controlled by the first person? What methods to carry out movement?

  2. If not difficult, help the code snippet.

:bust_in_silhouette: Reply From: johannesg

Check out the SimpleFirstPerson asset in the assetlibrary. That should hopefully push you in the right direction. SimpleFirstPerson - Godot Asset Library

That’s very primitive. But thanks anyway for the help.

DimitriyPS | 2018-02-15 15:59