I created a function that, upon contact with a collider, launches my player character in the direction opposite to the one that connects them with the center of the collider.
However, when launching the character, it goes like expected for a small distance, then skyrockets to the sky. I have falling lateral friction and ground friction both set to 1.0 and also breaking friction factor and air control are set to 1.0.
Here is the code:
And here is a graph detailing what happens: