minetest/src/unittest
Dániel Juhász 3f8261830e Improve getPointedThing() (#4346)
* Improved getPointedThing()

The new algorithm checks every node exactly once.
Now the point and normal vector of the collision is also returned in the
PointedThing (currently they are not used outside of the function).
Now the CNodeDefManager keeps the union of all possible nodeboxes, so
the raycast won't miss any nodes. Also if there are only small
nodeboxes, getPointedThing() is exceptionally fast.
Also adds unit test for VoxelLineIterator.

* Cleanup, code move

This commit moves getPointedThing() and
Client::getSelectedActiveObject() to ClientEnvironment.
The map nodes now can decide which neighbors they are connecting to
(MapNode::getNeighbors()).
2017-01-04 19:18:40 +01:00
..
CMakeLists.txt Add unittests to test player saving/loading (#4679) 2016-10-27 09:45:01 +02:00
test.cpp Remove some abort() calls 2015-10-26 04:45:00 +01:00
test.h Remove some abort() calls 2015-10-26 04:45:00 +01:00
test_areastore.cpp Implement AreaStore serialization 2016-03-07 16:33:20 -05:00
test_collision.cpp Don't pass non-const references to collision methods 2016-01-29 15:53:54 +01:00
test_compression.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_connection.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_filepath.cpp Fix RemoveRelatvePathComponents 2016-12-20 17:17:38 +10:00
test_inventory.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_keycode.cpp Add keycode.cpp unittests 2016-09-25 17:26:38 +02:00
test_map_settings_manager.cpp couple of memory leaks fixes. 2016-08-10 16:59:32 +02:00
test_mapnode.cpp Remove unused functions. 2015-08-16 14:29:33 +02:00
test_nodedef.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_noderesolver.cpp NodeResolver: Remove NodeResolveMethod 2015-05-07 02:36:01 -04:00
test_noise.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_objdef.cpp Split ObjDef/ObjDefManager out to objdef.cpp 2015-05-18 22:30:25 -04:00
test_player.cpp Breath cheat fix: server side 2017-01-01 23:11:26 +01:00
test_profiler.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_random.cpp Fix Lua PcgRandom 2015-08-12 11:36:22 +02:00
test_schematic.cpp Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings 2015-05-16 20:15:03 -04:00
test_serialization.cpp Add BufReader and vector-based serialization methods 2015-10-15 01:31:31 -04:00
test_settings.cpp Travis: build matrix improvements + CPP11 build 2016-10-06 00:28:24 +02:00
test_socket.cpp Tests: Modularize unit testing 2015-04-26 15:08:54 -04:00
test_threading.cpp Travis: build matrix improvements + CPP11 build 2016-10-06 00:28:24 +02:00
test_utilities.cpp Escape more strings: formspecs, item descriptions, infotexts... 2016-04-24 03:54:11 +10:00
test_voxelalgorithms.cpp Improve getPointedThing() (#4346) 2017-01-04 19:18:40 +01:00
test_voxelmanipulator.cpp Tests: Add NodeResolver unittests 2015-05-05 12:00:36 -04:00