Hi all. I’m working on a 2D platformer based on this guy’s (amazing) tutorial series. I plan to study, extend, and shift his controller around until I have something that works for me. Important note- it’s made without Unity rigidbodies. Everything is coded from scratch, and the only Unity physics-related system it relies on is raycasting (for collision checking).
Anyway, there’s something I’ve been trying to understand for a while, and that’s how to calculate a jump that would get a character from a point A to a point B, but with a realistic arc instead of a straight interpolation. Here’s a drawing:
That’s what I had in mind. One more note about it: this jump will be independent of player input as it’s happening. Once the jump is initiated, it continues until it’s finished, and at that point control is returned to the player, so there’s no worrying about how this will interact with character control. It’s a different ‘type’ of jump than a standard platformer jump, so it behaves differently. It’s like an auto jump that the player can use in certain scenarios.
I’m hoping there’s some sort of physics equation out there that could help me calculate the arc, so I thought I’d come here since my knowledge of physics is okay at best. Can anyone help me? I’d really appreciate it Even pointing me to an article or two would help.