Hey, I'm working on a 2D grid game (think Terraria), I want to check if a monster can make jump from point A (start) to B (target). It can adjust its horizontal/vertical speed to hit smaller/bigger jumps, same as the player can (for example by holding space for longer to jump higher). So I'm calling this function
I have no clue if my formula is even right, I'm getting weird results partially because I don't know how to incorporate horizontal velocity which should be based on monster's