May 11, 2021, 02:59:59 AM

#### Flanker

• Jr. Member
• Posts: 41
« 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.

#### Qube

• Hero Member
• Posts: 2681
• I mostly code at night... Mostly.
##### 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
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.

#### Derron

• Hero Member
• Posts: 3552
##### 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