title: How can i make a rigid body jump in godot without givign it the ability to fly
body: <p>I would have used a kinematic body but i want to add real life physics to my 2d object but it seems that i can literally fly by pressing the up key several times</p>
  <pre><code>extends RigidBody2D
  
  var velocity = Vector2.ZERO
  
  const GRAVITY = 35
  const SPEED = 1000
  const JUMPFORCE = -900
  
  func _process(delta):
      if Input.is_action_just_pressed(&quot;ui_right&quot;):
          apply_central_impulse(Vector2(1000,0))
      if Input.is_action_just_pressed(&quot;ui_left&quot;):
          apply_central_impulse(Vector2(-1000,0))
      if Input.is_action_just_released(&quot;ui_up&quot;):
          apply_central_impulse(Vector2(0,-1000))
  </code></pre>