1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-23 04:45:24 +02:00

Basic camera control API (#15796)

This commit is contained in:
sfan5
2025-02-19 18:45:45 +01:00
committed by GitHub
parent 50819ace8f
commit ba62808fe8
18 changed files with 162 additions and 42 deletions

View File

@@ -375,6 +375,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 tool_reload_ratio)
{
v3f eye_offset = player->getEyeOffset();
switch(m_camera_mode) {
case CAMERA_MODE_ANY:
assert(false);
break;
case CAMERA_MODE_FIRST:
eye_offset += player->eye_offset_first;
break;