mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
rename Level.chunksStorage to Level.chunks
This commit is contained in:
parent
70370904db
commit
48d94036fd
14 changed files with 46 additions and 51 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue