What are the bullet mechanics in Tank Royale? Specifically:
Bullet speed formula (function of firepower)
How to compute travel time to a target at distance D
Lead angle formula: given enemy position, velocity vector, and bullet speed, what's the aim angle?
Does the bot API expose bullet events (fired, hit, miss)?
Any existing lead-angle code in the repo (PPO_Bot, EvoBot, etc.)?
## Question
What are the bullet mechanics in Tank Royale? Specifically:
- Bullet speed formula (function of firepower)
- How to compute travel time to a target at distance D
- Lead angle formula: given enemy position, velocity vector, and bullet speed, what's the aim angle?
- Does the bot API expose bullet events (fired, hit, miss)?
- Any existing lead-angle code in the repo (PPO_Bot, EvoBot, etc.)?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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