fix third person cameras updating

This commit is contained in:
MihailRis
2024-07-09 04:57:03 +03:00
parent 371acf0008
commit 7e80642ec3
+3 -1
View File
@@ -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 {