auto-git:
[change] src/runtime-three/runtime-host.ts
This commit is contained in:
@@ -3710,7 +3710,14 @@ export class RuntimeHost {
|
|||||||
const simulationDt = this.isRuntimePaused() ? 0 : dt;
|
const simulationDt = this.isRuntimePaused() ? 0 : dt;
|
||||||
|
|
||||||
this.activeController?.update(simulationDt);
|
this.activeController?.update(simulationDt);
|
||||||
this.applyPlayerCameraEffects(simulationDt);
|
const activeCameraRig = this.applyActiveCameraRig(simulationDt);
|
||||||
|
|
||||||
|
if (activeCameraRig === null) {
|
||||||
|
this.applyPlayerCameraEffects(simulationDt);
|
||||||
|
} else {
|
||||||
|
this.resetPlayerCameraEffects();
|
||||||
|
}
|
||||||
|
|
||||||
this.audioSystem.setPlayerControllerAudioHooks(
|
this.audioSystem.setPlayerControllerAudioHooks(
|
||||||
this.currentPlayerAudioHooks
|
this.currentPlayerAudioHooks
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user