mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
memory related refactor
This commit is contained in:
parent
8054d4ba55
commit
017c8722ae
25 changed files with 336 additions and 320 deletions
|
|
@ -34,7 +34,6 @@ const float RUN_ZOOM = 1.1f;
|
|||
const float C_ZOOM = 0.1f;
|
||||
const float CROUCH_SHIFT_Y = -0.2f;
|
||||
|
||||
|
||||
CameraControl::CameraControl(std::shared_ptr<Player> player, const CameraSettings& settings)
|
||||
: player(player),
|
||||
camera(player->camera),
|
||||
|
|
@ -136,7 +135,7 @@ void CameraControl::switchCamera() {
|
|||
}
|
||||
}
|
||||
|
||||
void CameraControl::update(PlayerInput& input, float delta, Chunks* chunks) {
|
||||
void CameraControl::update(const PlayerInput& input, float delta, Chunks* chunks) {
|
||||
offset = glm::vec3(0.0f, 0.7f, 0.0f);
|
||||
|
||||
if (settings.shaking.get() && !input.cheat) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue