mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow setting custom third person front view camera offset (#13686)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
3a4bf14c20
commit
33cc29bbda
9 changed files with 41 additions and 22 deletions
|
@ -382,9 +382,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 tool_reload_ratio)
|
|||
eye_offset += player->eye_offset_third;
|
||||
break;
|
||||
case CAMERA_MODE_THIRD_FRONT:
|
||||
eye_offset.X += player->eye_offset_third.X;
|
||||
eye_offset.Y += player->eye_offset_third.Y;
|
||||
eye_offset.Z -= player->eye_offset_third.Z;
|
||||
eye_offset.X += player->eye_offset_third_front.X;
|
||||
eye_offset.Y += player->eye_offset_third_front.Y;
|
||||
eye_offset.Z -= player->eye_offset_third_front.Z;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue