rename Level.chunksStorage to Level.chunks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user