Research bullet mechanics — speed, travel time, lead angle formula #160
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Question
What are the bullet mechanics in Tank Royale? Specifically:
Resolution
Bullet speed:
20 - 3 * firepower(range 11–19.7 units/turn), constant velocity, no decay.Travel time:
D / bulletSpeed.Lead angle: quadratic intercept — solve
(vx²+vy²−s²)t² + 2(dx·vx+dy·vy)t + D² = 0, smallest positive root. Two Newton steps suffice.Bullet events available in Nim API: onBulletFired, onBulletHit, onBulletHitWall, onBulletHitBullet.
No existing lead-angle code in repo. Formula needs to be implemented.
Research:
SNNBot_garage/research/bullet-mechanics.mdon branchresearch/bullet-mechanics