Godot Version
4.5.1
Question
few things before we start.
- it has been a hot minute since Ive had to do any curve math so give me a minute
- I am specifically talking about Godot’s Curve Resource. not Curve2D or Curve3D
- 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.
