Implement virtual bullet system #110

Closed
opened 2026-08-28 23:55:38 +02:00 by SirStone · 1 comment
Owner

Question

Build the virtual bullet tracking system. Every tick, all 64 population candidates produce an aim angle (GF × MEA) and a power. Spawn a virtual bullet per candidate per tick. Track each bullet's position each tick (linear trajectory at speed = 20 - 3 × power). Detect hit by checking intersection with enemy's actual bounding box. Detect miss when bullet leaves battlefield. Record hit/miss per candidate.

Related map

#108

Blocked by #109

## Question Build the virtual bullet tracking system. Every tick, all 64 population candidates produce an aim angle (GF × MEA) and a power. Spawn a virtual bullet per candidate per tick. Track each bullet's position each tick (linear trajectory at speed = 20 - 3 × power). Detect hit by checking intersection with enemy's actual bounding box. Detect miss when bullet leaves battlefield. Record hit/miss per candidate. ## Related map #108 Blocked by #109
SirStone added the wayfinder:task label 2026-08-28 23:55:38 +02:00
Author
Owner

New module libs/vbullets.nim. 64 candidates, spawnBullet/stepBullets/hitRate API. Circle-rect hit detection. Assert-based self-check for geometry.

New module libs/vbullets.nim. 64 candidates, spawnBullet/stepBullets/hitRate API. Circle-rect hit detection. Assert-based self-check for geometry.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SirStone/SirRoboGarage#110