I was surprised while looking at the unity 2d documentation that there isn’t a simple arc raycast. These are useful for things like jumping, testing the path of projectiles before shooting and other AI goodness.
Here’s the raw code to a simple one. It uses an initial velocity and acceleration, along with some limits to allow you to do a “natural” raycast that returns any colliders along the path.
The result will let you do things like this: