Question by
drslaphead · Jun 12, 2020 at 11:18 PM ·
3djumpingtargeting
3d Targeted jump
I have a character jumping from pad to pad (like a frog) using vector3.rotatetowards and vector3.movetowards to move and rotate respectively. How do I get the character to jump to the target and land at the correct position, horz, vert AND diag?
Please help, I'm guessing at the moment and could really use some help.
the game is grid based so the jump to is known I'm just having problems landing at the exact spot
Thanks in advance
Comment
Answer by davidmaamoaix · Jun 12, 2020 at 11:47 PM
Some simple math would be required to calculate the parabola of the player. Here is an explanation I found on the subject: here. The answer in link is for a 2D projectile, but the same concept works in 3D with a bit of tweaking.