【Godot】教你实现3D第一人称控制
replace the script between "dir=Vector3()" and "if Input.is_action_just...":
if is_on_floor():
gravity_vel = -get_floor_normal()
h_drag = normal_drag
jumpStatus = true
else:
gravity_vel += Vector3.DOWN * gravity * delta
if !RayCast.is_colliding():
h_drag = air_drag