aim

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package aim provides ballistic helpers shared by games (lead prediction, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeadPoint

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL