mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add player entity (draft)
This commit is contained in:
parent
939cfdd851
commit
77c9c5cdb7
6 changed files with 39 additions and 13 deletions
|
|
@ -242,7 +242,7 @@ void PlayerController::update(float delta, bool input, bool pause) {
|
|||
}
|
||||
updateFootsteps(delta);
|
||||
updateCamera(delta, input);
|
||||
updateControls(delta);
|
||||
updatePlayer(delta);
|
||||
|
||||
}
|
||||
camControl.refresh();
|
||||
|
|
@ -288,7 +288,8 @@ void PlayerController::resetKeyboard() {
|
|||
input.jump = false;
|
||||
}
|
||||
|
||||
void PlayerController::updateControls(float delta){
|
||||
void PlayerController::updatePlayer(float delta) {
|
||||
player->updateEntity(level);
|
||||
player->updateInput(level, input, delta);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class PlayerController {
|
|||
void updateKeyboard();
|
||||
void updateCamera(float delta, bool movement);
|
||||
void resetKeyboard();
|
||||
void updateControls(float delta);
|
||||
void updatePlayer(float delta);
|
||||
void updateInteraction();
|
||||
void onBlockInteraction(
|
||||
glm::ivec3 pos,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue