Godot 3.5 3D AI pathfinding with player detection

A video showing how to create an 3D AI that detects the presence of a player and finds a path to him, works in Godot version 3.5 Want to know more about me? Here are some links to my accounts: Twitter: My website: Facebook: Link to my games: And this is the script I used: extends KinematicBody #gravity var gravity = 15 #idle rotation var xlocation = rand_range(-360,360) var zlocation = rand_range(-360,360) #folowing player var harass = false #player escape event var player_escape = false #face direction of player onready var target = get_parent().get_node(“Player“) var rot_speed = #map navigation onready var agent : NavigationAgent = $NavigationAgent onready var target_location : Node = $“../Player“ var speed = 5 var m
Back to Top