January 20, 2021, 12:43:38 PM

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

Offline Flanker

  • Jr. Member
  • **
  • Posts: 41
    • Youtube channel on Blitzmax programming prototypes
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 : 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: 2587
  • 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
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time...

Offline Derron

  • Hero Member
  • *****
  • Posts: 3332
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".


bye
Ron

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal