One step closer to multiplayer

This commit is contained in:
InfiniteCoder
2024-03-02 22:59:31 +03:00
parent 9d9c9f5570
commit 0157213a56
26 changed files with 213 additions and 219 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ void Player::updateInput(
float vel = std::max(glm::length(hitbox->velocity * 0.25f), 1.0f);
int substeps = int(delta * vel * 1000);
substeps = std::min(100, std::max(1, substeps));
level->physics->step(level->chunks, hitbox.get(),
level->physics->step(level->chunks.get(), hitbox.get(),
delta, substeps,
crouch, flight ? 0.0f : 1.0f,
!noclip);