add 'offset', 'bits' properties & fix is_solid_at

This commit is contained in:
MihailRis
2025-07-14 00:20:49 +03:00
parent 29021d1178
commit 7e0b58d96b
3 changed files with 22 additions and 5 deletions
+4 -2
View File
@@ -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) {