Hello! I am trying to write an enemy AI that jumps between available platforms when it doesn’t have ground below its feet. I want the character to do the jumps in a parabolic fashion rather than doing a straight jump between them as shown in the image below:
However my function doesn’t seem to perform properly. If the target is higher than start position the target just does a straight jump to the target rather than a parabolic one, and sometimes it gets too much X velocity. How can I achieve the parabolic jumps that I’m trying to achieve? Thanks in advance.
The parabolic movement is alreay working without the GetForceDivide(). I only added this if you wanted to change the jump force if the destination is lower than the AI.
Well this seems to achieve exactly what I want to achieve… I swear I’ve seen so many different posts on the internet using complex maths that make use of angles and physics formulas (which is what my previous function did too) and you just did it with a function that could be reduced to a one line… I am baffled as much as I’m amazed. Thank you!