kidscancode / godot_recipes

Lessons, tutorials, and guides for game development using the Godot game engine.
MIT License
237 stars 38 forks source link

[Discussion] AI: Homing missile #74

Open cbscribe opened 3 years ago

cbscribe commented 3 years ago

Discussion for http://godotrecipes.com/ai/homing_missile/

Sousio commented 3 years ago

Nice tutorial, however I had a hard time understanding what’s going on with transforms in relation to muzzle and missile, before reading the TRANSFORMS. As a lot of things happen under the hood and apparently the Matrices and transforms and Vector math sections of Godot’s official documentation were not enough for this. So please add a field in Related Recipes to point out to the TRANSFORMS.

cbscribe commented 3 years ago

I'm sorry you had a problem with the official docs. Adding the related link is a good idea, I will do that. Thanks for the suggestion.

Sousio commented 3 years ago

I do appreciate how the Kidscancode’s tutorials are short and at the same time add something new to the official Docs. As the official ones are so instructive, but are not expected to cover everything, as they should be kept general. But in this case, I just think of them missing some important and basic lines like

transform.origin is equal to the object’s position vector

to be as comprehensive as a reference. Btw, I really appreciate your hard work on docs too.

mightymochi commented 3 years ago

I'd love to know how you added the extra wavy-ness to the travel paths in the extra effects part. In the video on the page you take the plane on a straight away and the missiles keep bouncing around. I've tried introducing a varying target number, but can't quit seem to get the same effect.

engimaxp commented 2 years ago

Thanks for the perfect tutorial ! Though , I find replacing velocity = velocity.clamped(speed) with velocity = velocity.normalized() * speed will make a more realistic homming missle effect

lbowers commented 2 years ago

Probably a stupid question, but where is the wavy-ness coming from? I don't want it in my game, or I need to at least dampen it. I need the projectiles to "fly" smoothly once they,re on the right path.

Great tutorials! My son and I refer to the mall the time.