AI and Navigation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JowannoSebastiano
:warning: Old Version Published before Godot 3 was released.

Guys, hello!
I have one problem.
So there is two kinematic body.
And I need to make first follow the second.
All I know is that I should use Navigation node and I have a plan that looks like this:

  1. Kinematic body 1 gets position of the Kinematic body 2
  2. Kinematic body 1 moves to kinematic body2
  3. While Kinematic body 1 moves to Kinematic body 2, it should avoid some navigation poligons.
    So, did anyone realized something like this?
:bust_in_silhouette: Reply From: tiernich

check this out: navigation and path following

or this demo if you want to use tiles. However, this one uses RigidBody2D instead of KinematicBody2D, but switching from using add_force to move isn’t hard.

batmanasb | 2016-04-10 22:28

@batmanasb
thanks bats, almost that I need

JowannoSebastiano | 2016-04-12 04:03