How to make a tower AI that can hit moving targets.
Want to support me? / octodemy
Finding the angle to hit a target is move difficult than it seems. Involving quite a bit of ballistic physics and math.
Here we'll make two type of ballistic aiming.
One is moving the objects mesh to aim at the target.
And the other is directly shooting at the target's direction.
Then we'll make a tower AI that detects and hits moving targets.
And end by making a quick tower defense prototype game.
Formula deduction and projectile motion in games article:
https://www.forrestthewoods.com/blog/...
····················································································
Want to support me?
https://ko-fi.com/octodemy
Get the project source files by supporting me:
/ octodemy
····················································································
CHAPTERS:
0:00 Intro
0:14 Cannon setup & shooting
3:49 Aiming & hitting moving targets
8:11 Bow weapon & improved prediction
11:15 Tower AI & detecting enemies
15:12 A quick tower defense prototype
#godot #godot4 #godotengine