- Edited
I come from Unreal Engine, where most actors had gravity, I came to Godot for the 2D. A few months later I tried to experiment with 3d. I chose the RigidBody, which had premade gravity like Unreal Engine. I wrote this code. (Sorry the Code Block didn't work.)
func _process(delta):
inpVec.x = Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left")
inpVec.z = Input.get_action_strength("ui_down") - Input.get_action_strength("ui_up")
inpVec = inpVec.normalized()
inpVec.y = Input.get_action_strength("ui_accept")
motion = inpVec * delta
motion = translate(motion)
While playing the game, if I jump or go off the platform the gravity does not work.