package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Sep 11, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package aim provides ballistic helpers shared by games (lead prediction, etc.).
func LeadPoint(ox, oy, px, py, vx, vy, bulletSpeed float64) (aimX, aimY float64)
LeadPoint predicts where to shoot so a bullet of speed S from (ox,oy)
meets a target at (px,py) moving with velocity (vx,vy), assuming constant V.
If no positive intercept exists, it returns the target's current position.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.