Is there a way I can use a Curve to represent a players jump arc?

Godot Version

4.5.1

Question

few things before we start.

  1. it has been a hot minute since Ive had to do any curve math so give me a minute
  2. I am specifically talking about Godot’s Curve Resource. not Curve2D or Curve3D
  3. I do know that there are tutorials out there that give me the kind of jump Im looking for. I just kinda wanna see if I can use a curve for the fun of it.

So as the title says I wanna see if I can use a Curve to basically represent the players jump arc. so for example I have this Curve that I am exporting as a variable where the X value represents time and the y value represents height.

So I suppose my immediate question would be: is there a way I can get my players y velocity by sampling this graph? if so, how would I go about doing that?

If I recall correctly there is a way to get basically the direction of any point along a graph. I think its called the tangent line although I might be getting that mixed up with something else. if so ho would I go about getting the tangent line? since that seems like a pretty clear winner for how I get my y velocity.

Sample the curve at two near points. Normalized direction vector from one to another will approximate the tangent.