mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 08:33:46 +01:00
37b4f0d34c
NDT_CONNECTED attempts to connect to any side of nodes that it can connect to, which is troublesome for FACEDIR type nodes that generally may only have one usable face, and can be rotated. We introduce a node parameter `connect_sides` that is valid for any node type. If specified, it lists faces of the node (in "top", "bottom", "front", "left", "back", "right", form, as array) that connecting nodeboxes can connect to. "front" corresponds to the south facing side of a node with facedir = 0. If the node is rotatable using *simple* FACEDIR, then the attached face is properly rotated before checking. This allows e.g. a chest to be attached to only from the rear side. |
||
---|---|---|
.. | ||
c_content.cpp | ||
c_content.h | ||
c_converter.cpp | ||
c_converter.h | ||
c_internal.cpp | ||
c_internal.h | ||
c_types.cpp | ||
c_types.h | ||
CMakeLists.txt |