mirror of
https://github.com/APercy/automobiles_pck
synced 2025-09-11 22: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 nodename = minetest.get_node(thing.under).name
|
||||||
local drawtype = get_nodedef_field(nodename, "drawtype")
|
local drawtype = get_nodedef_field(nodename, "drawtype")
|
||||||
if drawtype ~= "plantlike" then
|
if drawtype ~= "plantlike" then
|
||||||
ret_y = pos.y
|
if initial_pos.y >= pos.y then
|
||||||
--minetest.chat_send_all("ray intercection: " .. dump(pos.y) .. " -- " .. nodename)
|
ret_y = pos.y
|
||||||
|
--minetest.chat_send_all("ray intercection: " .. dump(pos.y) .. " -- " .. nodename)
|
||||||
|
end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,6 +6,7 @@ minetest.register_entity('automobiles_roadster:front_suspension',{
|
|||||||
initial_properties = {
|
initial_properties = {
|
||||||
physical = true,
|
physical = true,
|
||||||
collide_with_objects=true,
|
collide_with_objects=true,
|
||||||
|
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
|
||||||
pointable=false,
|
pointable=false,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "automobiles_roadster_front_suspension.b3d",
|
mesh = "automobiles_roadster_front_suspension.b3d",
|
||||||
|
Loading…
Reference in New Issue
Block a user