mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
fix player camera zoom with fov-effects disabled
This commit is contained in:
parent
49727ec026
commit
014ffab183
2 changed files with 16 additions and 12 deletions
|
|
@ -32,10 +32,13 @@ class CameraControl {
|
|||
/// @return camera offset
|
||||
glm::vec3 updateCameraShaking(const Hitbox& hitbox, float delta);
|
||||
|
||||
/// @brief Update field-of-view effects
|
||||
/// @brief Update field-of-view
|
||||
/// @param input player inputs
|
||||
/// @param delta delta time
|
||||
void updateFovEffects(const Hitbox& hitbox, PlayerInput input, float delta);
|
||||
/// @param effects movement-related effects
|
||||
void updateFov(
|
||||
const Hitbox& hitbox, PlayerInput input, float delta, bool effects
|
||||
);
|
||||
|
||||
/// @brief Switch active player camera
|
||||
void switchCamera();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue