I’m trying to find out the velocity of a jump from the nodes current position and it’s target position, i know how to do that but i don’t know how to make the velocity part
the node has a fixed speed of 8-12 godot units and i want to make the node jump by doing a velocity.y += jumpvel_to_target
the gravity islike 1/2 of the basic Godot gravity so around 2.4-4.2
Sorry if this is too much to ask I just need a n equation I do have another version way lamer which just goes up a lot offscreen so it doesn’t need a complex equation like this but I want to challenge myself ( also don’t tell me too much is need to learn too yaknow?).
Thanks in advance! :3
(also sorry for no code theres really nothing else ecxept making a schockwave but thats a whole other can of worms)
Maybe if you graph out on paper and upload a photo of that we can figure out this “cool” system whatever it is.
In the end, we are all living by the same rules of physics, whether we use muscles, spider webs, bungee ropes or trampolines to get around.
I think i know now how to do this, I need to do some projectile motion math
I need to get the distance between position 1 to 2 then dividing it by speed which is the time so 20 blocks / 5 speed = 4
Then getting the y distance between the start position and the end position, and divide it by time so if the difference is 7 then its 7/4 which is 1.75 then multiply it by half of the gravity vector (also idk if this actually works yet so I’m trying it first then checking this as the solution) edit: Also thanks for making me try this now I know more stuff about math!