October 19, 2021, 09:40:08

Author Topic: Homing missile lead collision  (Read 2218 times)

Offline Flanker

  • Jr. Member
  • **
  • Posts: 41
    • Youtube channel on Blitzmax programming prototypes
Homing missile lead collision
« on: March 18, 2019, 11:42:07 »
Hello, a few years ago I posted an explanation about lead collision on the BB forum : http://mojolabs.nz/posts.php?topic=105060

I revisited it with an even simpler solution and though I could share it here.

Lead collision allows to predict the path to follow in order to hit a moving target, and to calculate the impact point if needed. This can be useful for some video games, and can be used in both 2D and 3D. Only the target's position and speed vector, and the projectile's position and speed are needed.

Here is a video I made explaining the method using the intercept theorem (or Thales proportionality theorem) :
Everyone knew it was impossible, until someone who didn't know made it.

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2777
  • I mostly code at night... Mostly.
    • SyntaxBomb - Indie Coders
Re: Homing missile lead collision
« Reply #1 on: March 19, 2019, 11:19:55 »
That’s some neat stuff :) perfect for a variety of homing missiles ;D
Mac mini ( 2018 / 2020 ), 3 GHz 6-Core Intel Core i5, 16 GB 2667 MHz DDR4, 1TB NVMe, eGPU Radeon Pro 580 8 GB, LG Ultragear 27GL83A-B 27 Inch
Mac mini (2020 ), M1 SoC, 8 GB LPDDR4, 512GB NVMe 
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time.

Online Derron

  • Hero Member
  • *****
  • Posts: 3664
Re: Homing missile lead collision
« Reply #2 on: March 19, 2019, 11:34:16 »
While there is so few in space you still sometimes need some "collision avoidance" (if there is an obstacle between "missile" and "target").

Have fun adding that in - and bringing up a new video.

Aside of that I of course watched the full video and want to say "thanks".



SimplePortal 2.3.6 © 2008-2014, SimplePortal