mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-18 07:40:22 +01:00
dd71dcbcf6
Implement drag force according to the equation: drag_force = drag_coefficient * speed ^2 Also add a small constant force to implement friction force.
25 lines
609 B
Lua
25 lines
609 B
Lua
unused_args = false
|
|
allow_defined_top = true
|
|
|
|
read_globals = {
|
|
"DIR_DELIM",
|
|
"minetest", "core",
|
|
"dump",
|
|
"vector",
|
|
"VoxelManip", "VoxelArea",
|
|
"PseudoRandom", "PcgRandom",
|
|
"ItemStack",
|
|
"Settings",
|
|
"unpack",
|
|
-- Silence errors about custom table methods.
|
|
table = { fields = { "copy", "indexof" } },
|
|
-- Silence warnings about accessing undefined fields of global 'math'
|
|
math = { fields = { "sign" } }
|
|
}
|
|
|
|
-- Overwrites minetest.handle_node_drops
|
|
files["mods/creative/init.lua"].globals = { "minetest" }
|
|
|
|
-- Don't report on legacy definitions of globals.
|
|
files["mods/default/legacy.lua"].global = false
|