summary refs log tree commit diff
path: root/src/Entities/Player.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-12-07 02:14:47 +0100
committerMel <einebeere@gmail.com>2023-12-07 02:14:47 +0100
commitefd17623627607a26f33dac8f7ef1a1ddc931907 (patch)
tree76cf0389ae927bfc697c830155d926843178030e /src/Entities/Player.hpp
parent581f50e0bd45a19282d7958975997d376512b195 (diff)
downloadmeowcraft-efd17623627607a26f33dac8f7ef1a1ddc931907.tar.zst
meowcraft-efd17623627607a26f33dac8f7ef1a1ddc931907.zip
Gather all possibly colliding blocks in the player move domain for collision detection
Diffstat (limited to 'src/Entities/Player.hpp')
-rw-r--r--src/Entities/Player.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.hpp b/src/Entities/Player.hpp
index 7238e80..3ae10ff 100644
--- a/src/Entities/Player.hpp
+++ b/src/Entities/Player.hpp
@@ -29,7 +29,7 @@ private:
     void update_camera_position(GFX::Camera& camera);
 
     static constexpr UInt MaxCollidingTerrain = 34;
-    static FlexArray<AABB, MaxCollidingTerrain> colliding_terrain(Position::World new_position, World::World& world);
+    static std::vector<AABB> terrain_collision_domain(Position::World from, Position::World to, World::World& world);
 
     // Creates a bounding box where `position` is at the center of the bottom face.
     static AABB bounding_box_for_position(Position::World position);