blocks hitboxes physics

This commit is contained in:
MihailRis
2023-11-29 21:22:42 +03:00
parent 693ad6d9a7
commit efacb041b5
3 changed files with 62 additions and 42 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
class VoxelRenderer;
class AABB;
class Content;
class ContentIndices;
class Chunk;
@@ -50,7 +51,7 @@ public:
glm::vec3& norm,
glm::vec3& iend);
bool isObstacle(int x, int y, int z);
const AABB* isObstacle(float x, float y, float z);
// does not move chunks inside
void _setOffset(int x, int z);