drift adjusted

This commit is contained in:
Alexsandro Percy 2023-04-29 21:55:27 -03:00
parent 0b2c35c9ff
commit 8b3f608e24
2 changed files with 3 additions and 3 deletions

View File

@ -55,12 +55,12 @@ if minetest.get_modpath("default") then
{"automobiles_lib:wheel","automobiles_trans_am:trans_am_body", "automobiles_lib:wheel"}, {"automobiles_lib:wheel","automobiles_trans_am:trans_am_body", "automobiles_lib:wheel"},
} }
}) })
minetest.register_craft({ --[[minetest.register_craft({
output = "automobiles_trans_am:trans_am_body", output = "automobiles_trans_am:trans_am_body",
recipe = { recipe = {
{"default:glass" ,"default:mese_crystal","default:steel_ingot"}, {"default:glass" ,"default:mese_crystal","default:steel_ingot"},
{"default:steel_ingot","default:steelblock","default:steel_ingot"}, {"default:steel_ingot","default:steelblock","default:steel_ingot"},
{"default:steelblock","default:steelblock", "default:steelblock"}, {"default:steelblock","default:steelblock", "default:steelblock"},
} }
}) })]]--
end end

View File

@ -486,7 +486,7 @@ minetest.register_entity("automobiles_trans_am:trans_am", {
local later_speed = automobiles_lib.dot(velocity,nhdir) local later_speed = automobiles_lib.dot(velocity,nhdir)
local dynamic_later_drag = trans_am.LATER_DRAG_FACTOR local dynamic_later_drag = trans_am.LATER_DRAG_FACTOR
if longit_speed > 4 then dynamic_later_drag = dynamic_later_drag/(longit_speed) end if longit_speed > 8 then dynamic_later_drag = dynamic_later_drag/(longit_speed) end
local later_drag = vector.multiply(nhdir,later_speed* local later_drag = vector.multiply(nhdir,later_speed*
later_speed*dynamic_later_drag*-1*automobiles_lib.sign(later_speed)) later_speed*dynamic_later_drag*-1*automobiles_lib.sign(later_speed))