mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
fix third person cameras updating
This commit is contained in:
parent
371acf0008
commit
7e80642ec3
1 changed files with 3 additions and 1 deletions
|
|
@ -246,10 +246,12 @@ void PlayerController::update(float delta, bool input, bool pause) {
|
||||||
void PlayerController::postUpdate(float delta, bool input, bool pause) {
|
void PlayerController::postUpdate(float delta, bool input, bool pause) {
|
||||||
if (!pause) {
|
if (!pause) {
|
||||||
updateFootsteps(delta);
|
updateFootsteps(delta);
|
||||||
updateCamera(delta, input);
|
|
||||||
}
|
}
|
||||||
player->postUpdate();
|
player->postUpdate();
|
||||||
camControl.refresh();
|
camControl.refresh();
|
||||||
|
if (!pause) {
|
||||||
|
updateCamera(delta, input);
|
||||||
|
}
|
||||||
if (input) {
|
if (input) {
|
||||||
updateInteraction();
|
updateInteraction();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue