mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
remove Player.hitbox (WIP)
This commit is contained in:
parent
2c7b5de50a
commit
7dfda981a8
11 changed files with 108 additions and 94 deletions
|
|
@ -25,7 +25,7 @@ LevelController::LevelController(EngineSettings& settings, std::unique_ptr<Level
|
|||
}
|
||||
|
||||
void LevelController::update(float delta, bool input, bool pause) {
|
||||
glm::vec3 position = player->getPlayer()->hitbox->position;
|
||||
glm::vec3 position = player->getPlayer()->getPosition();
|
||||
level->loadMatrix(position.x, position.z,
|
||||
settings.chunks.loadDistance.get() +
|
||||
settings.chunks.padding.get() * 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue