Godot Version
4.6.2
Question
How do I make an impulse to CharacterBody2D so it will “fly like in real life”?
For example, when I click, the player flies with some velocity in the direction of mouse and it must slow down until the character hits the ground.
You would have to alter the velocity in ways you believe are realistic. An impulse could be approximated by adding to velocity.
But how do I do it? Can you please show me an example?
This would be an example of an impulse up, like jumping
velocity += Vector2(0, -400)