# Land on a specific spot

This topic is 2203 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi guys,

After a couple of test I've edited the question to make it simple and easy to understand.I have a fixed initial velocity V(Vx,Vy,VZ) and a spot on higher ground E(Ex,Ey,Ez), my character must jump up there and he stands still at S(Sx,Sy,Sz). How Can I find the closest point to the character that can make him achieve the jump?And If the spot Is not available how can check other solutions? Edited by kahl

##### Share on other sites
With no limit on angle and force, the quickest way to get somewhere is to go with the as much force as possible in a straight line

##### Share on other sites
Then you will miss the target, I need a parabola ;)

##### Share on other sites
Why would you miss the target? You put no limit on the amount of force you can use, so the quickest way to get there is to go in a straight line with infinite force

##### Share on other sites
Because you will hit the border of the platform, I forgot to tell that the end location is the center of the platform. I need a parabola and a straight line is not realistic :never saw a platform game where you jump in straight line. I could use a simple vector force V(0,1,1) that makes the character jump forward but It's not my goal. I need to trace a parabola from startpoint to end point taking in account gravity, then plug the vector in my velocity vector so the character can move. . .

##### Share on other sites
Changed some things to make understandable and easier to answer. Sorry for the inconvenient. . .

##### Share on other sites

Find a direction vector to the platform:
 vec direction = (E-S).normalized(); 

In order to jump up add some value to the upVector:
 direction.y +=5; //y is upVector and 5 can whatever even (E.y-S.y) 

Then multiply a direction vector with velocity.

1. 1
2. 2
3. 3
Rutin
16
4. 4
5. 5

• 14
• 9
• 9
• 9
• 10
• ### Forum Statistics

• Total Topics
632912
• Total Posts
3009182
• ### Who's Online (See full list)

There are no registered users currently online

×