So I have a 3d flat terrain and I am trying to calculate how to make an entity "jump" from one location and land precisely on another.
So the entity is going to jump from left to right starting at {0, 0} and will land at {11, 5}
Gravity on this world is constant, but the entity can visit other worlds with different gravity strengths
The way the program works is, it decelerates the entity every 20th of a second so 20 "ticks" per second.
So the entity would be launched upward at a specific velocity "V" So the entities upward motion at launch would equal "V" the next tick would subtract gravity "G" from "V" so every tick looks like "V = V - G" or "V -= G"
So "G" is known. Upward force "V" should be larger or smaller depending on the distance to target. The shorter the distance the less height in the jump and vice versa. I am trying to solve for "X" and "Y" velocity to land the entity at it's target once it hits the ground again.
Hopefully that all made sense.
So the entity is going to jump from left to right starting at {0, 0} and will land at {11, 5}
Gravity on this world is constant, but the entity can visit other worlds with different gravity strengths
The way the program works is, it decelerates the entity every 20th of a second so 20 "ticks" per second.
So the entity would be launched upward at a specific velocity "V" So the entities upward motion at launch would equal "V" the next tick would subtract gravity "G" from "V" so every tick looks like "V = V - G" or "V -= G"
So "G" is known. Upward force "V" should be larger or smaller depending on the distance to target. The shorter the distance the less height in the jump and vice versa. I am trying to solve for "X" and "Y" velocity to land the entity at it's target once it hits the ground again.
Hopefully that all made sense.