rename Level.chunksStorage to Level.chunks

This commit is contained in:
MihailRis
2024-12-17 23:57:00 +03:00
parent 70370904db
commit 48d94036fd
14 changed files with 46 additions and 51 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ void Entities::updatePhysics(float delta) {
float vel = glm::length(prevVel);
int substeps = static_cast<int>(delta * vel * 20);
substeps = std::min(100, std::max(2, substeps));
physics->step(*level->chunksStorage, &hitbox, delta, substeps, eid.uid);
physics->step(*level->chunks, &hitbox, delta, substeps, eid.uid);
hitbox.linearDamping = hitbox.grounded * 24;
transform.setPos(hitbox.position);
if (hitbox.grounded && !grounded) {