mirror of
https://github.com/APercy/automobiles_pck
synced 2025-11-13 02:07:59 +01:00
axis height by pitch fixed
This commit is contained in:
parent
fe2ddb7880
commit
421e747fcc
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user