mil arreglos en les putes costeres

This commit is contained in:
2026-04-06 22:51:30 +02:00
parent 5393a861d1
commit 5c40b9bbf9
6 changed files with 107 additions and 58 deletions

View File

@@ -44,6 +44,10 @@ class TileCollider {
[[nodiscard]] auto hasGroundBelow(float x, float foot_y, float w) const -> bool;
[[nodiscard]] auto checkSlopeBelow(float x, float foot_y, float w) const -> SlopeInfo;
// Devuelve true si el jugador está parcialmente dentro de algún tile de slope
// (algún pie está por debajo de la superficie de un slope que solapa)
[[nodiscard]] auto isInsideAnySlope(float x, float foot_y, float w) const -> bool;
private:
static constexpr int TS = ::Tile::SIZE;
static constexpr int MW = ::Map::WIDTH;