diff options
author | Kahrl <kahrl@gmx.net> | 2012-03-19 04:25:09 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-17 16:34:39 +0300 |
commit | 1575448b1a71dd029a8d135d2aff9096483a9953 (patch) | |
tree | 3e4c7a68abbcf630484615e6ee202f2f0d83ade2 /src/mapnode.h | |
parent | 9f031a67594162a53b07acbfbc65faf8c4938e99 (diff) | |
download | minetest-1575448b1a71dd029a8d135d2aff9096483a9953.tar.gz minetest-1575448b1a71dd029a8d135d2aff9096483a9953.tar.bz2 minetest-1575448b1a71dd029a8d135d2aff9096483a9953.zip |
Custom boxy nodes (stairs, slabs) and collision changes
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 32e46b63f..751563135 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -22,7 +22,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include "irr_v3d.h" +#include "irr_aabb3d.h" #include "light.h" +#include <vector> class INodeDefManager; @@ -197,6 +199,17 @@ struct MapNode v3s16 getWallMountedDir(INodeDefManager *nodemgr) const; /* + Gets list of node boxes (used for rendering (NDT_NODEBOX) + and collision) + */ + std::vector<aabb3f> getNodeBoxes(INodeDefManager *nodemgr) const; + + /* + Gets list of selection boxes + */ + std::vector<aabb3f> getSelectionBoxes(INodeDefManager *nodemgr) const; + + /* Serialization functions */ |