March 06, 2021, 02:25:12 AM

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

Offline Flanker

Homing missile lead collision
« on: March 18, 2019, 11:42:07 AM »
Hello, a few years ago I posted an explanation about lead collision on the BB forum :

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: 2633
  • Total likes: 4
  • I mostly code at night... Mostly.
    • SyntaxBomb - Indie Coders
Re: Homing missile lead collision
« Reply #1 on: March 19, 2019, 11:19:55 AM »
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.

Offline Derron

Re: Homing missile lead collision
« Reply #2 on: March 19, 2019, 11:34:16 AM »
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