Time Nick Message 17:04 Wuzzy #9205 17:04 ShadowBot https://github.com/minetest/minetest/issues/9205 -- Falling nodes: Add support for facedir, colorfacedirr, wallmounted, colorwallmounted, color, airlike, signlike, torchlike and glow by Wuzzy2 19:46 Krock paramat? 20:32 Krock > Paramat wants to remove it. SmallJoker wants to keep it, but improve it a little. Now what? 20:33 Krock Wuzzy: moving the documentation from lua_api.txt to menu_lua_api.txt would be compatible with both requests 20:33 Krock although it's not where game writers would look for such information 20:33 Wuzzy ah, good point 20:33 Krock because I assume it's planned to make it per-game 20:33 Wuzzy well, its not for game writers anyway at this point 20:34 Krock right 20:34 Wuzzy obviously thi can be changed as soon per-game music arrives 20:34 Krock the description would need to be adjusted anyway so it does not really matter 20:37 Wuzzy Krock: also, the atan2 thing for falling_fixes. your suggested code does not work anyway 20:38 Krock yes, I assumed the calculations aren't correct yet 20:38 Krock as written in the code, it's entirely untested (except the yaw calculation) 20:39 Wuzzy it seems yaw is broken too 20:39 Wuzzy anyway maybe its better to avoid atan2 altogether. im not sure about speed. paramat might be worried 20:39 Wuzzy falling_nodes are very critical 20:40 Wuzzy but maybe i'm being too paranoid here 20:41 Krock from the server perspective it makes a difference for sure, but in singleplayer mode it won't really matter due to the mapblock mesh generator and object creation that takes noticeably more time 20:42 Wuzzy do u know complexity of math.atan2 function, by any chance? 20:45 Krock no sorry. but the C implementation is likely a LUT + multi-polynomial interpolation 20:47 Krock (not sure if polynomial is the right term here, but it uses multiple data points) 20:48 Krock even more black magic than that according to https://stackoverflow.com/a/23048159 20:59 Wuzzy heh. "black magic" is the right word 22:58 p_gimeno > Maybe a lookup-table-based approach is better. Using *_to_dir to get the dir, then use dir to lookup angles. 22:58 p_gimeno Why not using facedir to look up angles?