mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'offset', 'bits' properties & fix is_solid_at
This commit is contained in:
parent
29021d1178
commit
7e0b58d96b
3 changed files with 22 additions and 5 deletions
|
|
@ -37,9 +37,11 @@ std::unique_ptr<Content> ContentBuilder::build() {
|
|||
} else {
|
||||
def.defaults.rt.solid = def.defaults.model.type == BlockModelType::BLOCK;
|
||||
}
|
||||
|
||||
|
||||
const float EPSILON = 0.01f;
|
||||
def.rt.solid = glm::i8vec3(def.hitboxes[0].size() + EPSILON) == def.size;
|
||||
def.rt.solid =
|
||||
def.obstacle &&
|
||||
(glm::i8vec3(def.hitboxes[0].size() + EPSILON) == def.size);
|
||||
def.rt.extended = def.size.x > 1 || def.size.y > 1 || def.size.z > 1;
|
||||
|
||||
if (def.rotatable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue