mirror of
https://github.com/APercy/automobiles_pck
synced 2025-09-09 13:36:23 +02:00
fix
This commit is contained in:
parent
371da4c9e5
commit
6e1ac63edd
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user