From 599c8dd969ca3eec1767eaf3585ae9a32d23fa57 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Sun, 22 Sep 2024 18:19:51 +0100 Subject: bsp_level_generator: Generate level geometry manually Don't use CSG geometry, this makes it easier to generate a collision mesh, and in the future would make it easier to have player created levels. Level generation is much faster now as well. --- scripts/enemy.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/enemy.gd') diff --git a/scripts/enemy.gd b/scripts/enemy.gd index 6be60c7..1c4c063 100644 --- a/scripts/enemy.gd +++ b/scripts/enemy.gd @@ -62,6 +62,8 @@ func chase_nav_mesh(delta: float): var next_location = nav_agent.get_next_path_position() var new_velocity = (next_location - current_location).normalized() * speed + #print("Target is ", next_location) + # We only want to navigate on XZ plane new_velocity.y = 0 -- cgit