Hello people; first of all, I would like to let you know that I have knowledge of Godot 2D, but in Godot 3D I am a complete beginner;
I was trying to make the script as simple as possible for an original FPS Doom Style and I am completely lost when it comes to putting Gravity.
I made a very simple script and whenever I add gravity (as you can see, with move_vector.y), the character when walking is shaking as if he is constantly struggling to stabilize his position.
At first, I thought it was a problem with my script and then I tried to apply the Godot FPS tutorial script to my character and the same thing happens - even worse.
I am thinking that it is a problem with my floor, my meshes are made with StaticBodies; I remember that the Kinematic Body x Static Body relationship in Godot 2D was a problem.
Anyway, how can I solve and make my character more stable?
const MOVE_SPEED = 4
const MOUSE_SENS = 0.2
const GRAVITY = 0.98
var move_vector = Vector3()
move_vector.z -= 1
move_vector.z += 1
move_vector.x -= 1
move_vector.x += 1
move_vector.y -= GRAVITY
move_vector = move_vector.rotated(Vector3(0, 1, 0), rotation.y)
move_and_collide(move_vector * MOVE_SPEED * delta)
if event is InputEventMouseMotion:
rotation_degrees.y -= MOUSE_SENS * event.relative.x
rotation_degrees.x -= MOUSE_SENS * event.relative.y
Attached, photos of my project and video
player scene pic
floor mesh scene
Youtube video of behaviour (the record is a lil bit slow than reality, but i think you can see):