1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 05:35:25 +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

@@ -126,6 +126,17 @@ struct PlayerPhysicsOverride
}
};
/// @note numeric values are part of network protocol
enum CameraMode {
// not a mode. indicates that any may be used.
CAMERA_MODE_ANY = 0,
CAMERA_MODE_FIRST,
CAMERA_MODE_THIRD,
CAMERA_MODE_THIRD_FRONT
};
extern const struct EnumString es_CameraMode[];
class Map;
struct HudElement;
class Environment;
@@ -160,6 +171,8 @@ public:
return size;
}
CameraMode allowed_camera_mode = CAMERA_MODE_ANY;
v3f eye_offset_first;
v3f eye_offset_third;
v3f eye_offset_third_front;