From efd17623627607a26f33dac8f7ef1a1ddc931907 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 7 Dec 2023 02:14:47 +0100 Subject: Gather all possibly colliding blocks in the player move domain for collision detection --- src/Entities/Player.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Entities/Player.hpp') 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 colliding_terrain(Position::World new_position, World::World& world); + static std::vector 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); -- cgit 1.4.1