mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: players interpolation & add hud.set_allow_pause(...)
This commit is contained in:
parent
036e13a2ca
commit
2fa71b3bf0
25 changed files with 232 additions and 41 deletions
|
|
@ -54,7 +54,7 @@ void CameraControl::refresh() {
|
|||
}
|
||||
|
||||
void CameraControl::updateMouse(PlayerInput& input) {
|
||||
glm::vec3& rotation = player.rotation;
|
||||
glm::vec3 rotation = player.getRotation();
|
||||
|
||||
float sensitivity =
|
||||
(input.zoom ? settings.sensitivity.get() / 4.f
|
||||
|
|
@ -75,6 +75,8 @@ void CameraControl::updateMouse(PlayerInput& input) {
|
|||
rotation.x += 360.f;
|
||||
}
|
||||
|
||||
player.setRotation(rotation);
|
||||
|
||||
camera->rotation = glm::mat4(1.0f);
|
||||
camera->rotate(
|
||||
glm::radians(rotation.y),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue