Implement linear gun module #170

Closed
opened 2026-09-19 14:39:15 +02:00 by SirStone · 2 comments
Owner

Question

Create common_libs/guns/linear.nim. Predict enemy continues at current velocity and heading.

predict(): extrapolate enemy position forward by ticksToArrive = distance / bulletSpeed. Uses enemy heading + velocity. Returns absolute (x, y).
onResult() is a no-op. No learning.

## Question Create `common_libs/guns/linear.nim`. Predict enemy continues at current velocity and heading. predict(): extrapolate enemy position forward by ticksToArrive = distance / bulletSpeed. Uses enemy heading + velocity. Returns absolute (x, y). onResult() is a no-op. No learning.
SirStone added the wayfinder:task label 2026-09-19 14:39:15 +02:00
Author
Owner

Blocked by #166 — Gun trait and WorldState must be defined first.

Blocked by #166 — Gun trait and WorldState must be defined first.
Author
Owner

Superseded by vertical-slice tickets — see map #165.

Superseded by vertical-slice tickets — see map #165.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#170