Projectile Path
Without air resistance, a thrown object flies along a parabola.
range R = v² sin 2θ ÷ g peak H = (v sin θ)² ÷ 2g
At the same speed, 45° gives the longest range (when it lands at launch height).
Real air drag makes the range shorter. Compare in Projectile Motion in the physics encyclopedia.
Calculator
Change a value and the result and picture update instantly.
Result
Range R (m)
Peak height H (m)
Flight time (s)
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
Jumps, thrown balls and trajectory preview lines for cannons use it.
Code example (JavaScript)
vy -= g * dt; x += vx * dt; y += vy * dt;
What the symbols mean
| Symbol | Meaning |
|---|---|
v | Speed v (m/s) |
deg | Angle θ (°) |
g | Gravity g (m/s²) |
range | Range R (m) |
height | Peak height H (m) |
time | Flight time (s) |
More formulas in this category
- Rectangle Collision (AABB)
- Circle Collision
- Linear Interpolation (lerp)
- Easing Functions
- Cubic Bézier Curves
- Reflection Vector
- Pseudo-Random Numbers (xorshift)
Frequently asked questions
- What is the formula for Projectile Path?
- The formula for Projectile Path is range R = v² sin 2θ ÷ g peak H = (v sin θ)² ÷ 2g. Without air resistance, a thrown object flies along a parabola.
Math Formula Quiz Math for Game Development
Sources
Checked: 2026-11-29