diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-10-18 18:46:16 +0200 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-10-19 20:48:21 +0200 |
commit | e5652cb75cd891895fab50ce46eb34ab9734d160 (patch) | |
tree | f3a58632b605ad4df441dbada879a8ec4170cf0f /doc | |
parent | b11e1db809aebc22f26887fffd50bd37f1fb6c3a (diff) | |
download | minetest-e5652cb75cd891895fab50ce46eb34ab9734d160.tar.gz minetest-e5652cb75cd891895fab50ce46eb34ab9734d160.tar.bz2 minetest-e5652cb75cd891895fab50ce46eb34ab9734d160.zip |
Custom collision boxes node property.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8f77366f7..ff2143cc8 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -408,8 +408,16 @@ param2 is reserved for the engine when any of these are used: 0 = y+ 1 = z+ 2 = z- 3 = x+ 4 = x- 5 = y- facedir's two less significant bits are rotation around the axis paramtype2 == "leveled" - ^ The drawn node level is read from param2, like flowingliquid - + collision_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, + ^ defines list of collision boxes for the node. If empty, collision boxes + will be the same as nodeboxes, in case of any other nodes will be full cube + as in the example above. + Nodes can also contain extra data. See "Node Metadata". Node drawtypes |