☀️ Tank lessonshow our diep.io tanks do what they do
Lesson 16

A missile that steers itself

A bullet with a backward barrel on it is a rocket. Put that barrel on an auto turret and the rocket turns toward whatever the turret sees.

What you see

A missile that bends toward the nearest target and runs it down. Hornets, homing spells, guided arrows, the heat seekers of a fighter jet: one projectile, two parts.

The trick

The missile: a bullet whose backward engine barrel rides a hidden seeker turretTHRUSTseeker turret:hidden under,aims at targetsengine:Always fire,Recoil 5exhaust: a speckthat does nothing

A projectile can carry barrels (lesson 13), and a barrel with Recoil pushes whatever it sits on (lesson 11). So a bullet with a backward barrel that has Always fire and a lot of Recoil pushes itself along: that is how the stock Rocketeer works. Now put that engine on an auto turret that rides the bullet. The turret turns toward the nearest target inside its Range and Arc, the engine turns with it, and the push now points at the target.

Numbers that matter

FieldValueNotes
Engine Recoil53 or more to drive the missile; lower it if the launcher's own Bullet speed should carry more of the flight
Engine Reload0.5Short, so the push is steady. Each push costs budget, so the shot must be cheap
Engine Lifetime0.2 sThe exhaust shot must vanish at once, or it counts against the "in the air" budget
Engine Damage, Bullet speed0The shot is only there to kick
Seeker Range2000How far out the missile can see a target
Seeker Arc25How far either side of the launch direction it will turn
Turret layerunder the bodyThe engine barrel draws over it, so no disc shows

The arc is measured from where you fired

The seeker's 25-degree wedge is centred on the launch direction, so a target outside it is safeArc 25each wayinside the wedge:chasedoutside it:safemeasured from where you FIRED

The turret's Arc is centred on the direction the missile was fired, not on the missile's nose as it turns. A missile with Arc 25 can only chase inside a 50° wedge from its launch line, so a target that steps out of the wedge is safe. Only an Arc of 0 (the full circle) chases all the way round, and a chaser needs a short Range or it locks on to whatever is behind you at launch.

Arc and Range together are the missile's target field. Wide and deep covers a lot of ground but picks a specific target badly; small is precise. The two shapes that work are a wide Arc with a short Range (let the engine, not the launcher's speed, do the flying) and a narrow Arc with a long Range, like the 25 and 2000 here.

Gotchas

The guide to creating missiles is a write-up supplied by Random Troller, the author of the seeking projectile technique.