feat: player camera is now responsible for all look input handling
This commit is contained in:
parent
458b6f8079
commit
8567a274f1
3 changed files with 12 additions and 8 deletions
|
|
@ -9,6 +9,7 @@ void PlayerCamera::on_look_input(Vector2 input) {
|
|||
GETSET(rotation, {
|
||||
rotation.x = CLAMP(rotation.x + input.y, -Math::PI / 2.0, Math::PI / 2.0);
|
||||
});
|
||||
global_rotate(Vector3{ 0.f, 1.f, 0.f }, input.x);
|
||||
}
|
||||
|
||||
void PlayerCamera::update_fov() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue