This commit is contained in:
Alexsandro Percy 2022-01-28 11:28:16 -03:00
parent 371da4c9e5
commit 6e1ac63edd
2 changed files with 5 additions and 2 deletions

View File

@ -124,8 +124,10 @@ function automobiles_lib.eval_interception(initial_pos, end_pos)
local nodename = minetest.get_node(thing.under).name
local drawtype = get_nodedef_field(nodename, "drawtype")
if drawtype ~= "plantlike" then
ret_y = pos.y
--minetest.chat_send_all("ray intercection: " .. dump(pos.y) .. " -- " .. nodename)
if initial_pos.y >= pos.y then
ret_y = pos.y
--minetest.chat_send_all("ray intercection: " .. dump(pos.y) .. " -- " .. nodename)
end
break
end
end

View File

@ -6,6 +6,7 @@ minetest.register_entity('automobiles_roadster:front_suspension',{
initial_properties = {
physical = true,
collide_with_objects=true,
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
pointable=false,
visual = "mesh",
mesh = "automobiles_roadster_front_suspension.b3d",