mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
allows to put non-square blocks next to yourself
This commit is contained in:
parent
3d4bfeb442
commit
9b0cc01e68
3 changed files with 23 additions and 1 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue