allows to put non-square blocks next to yourself

This commit is contained in:
Sergwest
2024-03-19 20:34:49 +03:00
parent 3d4bfeb442
commit 9b0cc01e68
3 changed files with 23 additions and 1 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <glm/glm.hpp>
#include "../typedefs.h"
#include "../voxels/Block.h"
class Hitbox;
class Chunks;
@@ -26,6 +27,7 @@ public:
const glm::vec3 half,
float stepHeight);
bool isBlockInside(int x, int y, int z, Hitbox* hitbox);
bool isBlockInside(int x, int y, int z, Block* def, blockstate_t states, Hitbox* hitbox);
};
#endif /* PHYSICS_PHYSICSSOLVER_H_ */