From 421e747fcc7cac9cfce05504937ddb6898034e4c Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Tue, 18 Jan 2022 11:13:49 -0300 Subject: [PATCH] axis height by pitch fixed --- automobiles/ground_detection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automobiles/ground_detection.lua b/automobiles/ground_detection.lua index ee7c7c9..8bfd36e 100644 --- a/automobiles/ground_detection.lua +++ b/automobiles/ground_detection.lua @@ -23,7 +23,7 @@ function automobiles.ground_get_distances(self, radius, axis_distance) local f_x, f_z = automobiles.get_xz_from_hipotenuse(pos.x, pos.z, yaw, hip) local x, f_y = automobiles.get_xz_from_hipotenuse(f_x, r_y, pitch - math.rad(90), hip) --the x is only a mock --minetest.chat_send_all("r: "..r_y.." f: "..f_y .." - "..math.deg(pitch)) - local front_axis = {x=f_x, y=r_y, z=f_z} + local front_axis = {x=f_x, y=f_y, z=f_z} local front_obstacle_level = automobiles.get_obstacle(front_axis) --[[local left_front = {x=0, y=f_y, z=0}