1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Load blocks and objects behind player when in third-persion front-view (#13431)

This commit is contained in:
lhofhansl 2023-05-29 10:26:42 -07:00 committed by GitHub
parent fc3d6c1dd9
commit a8ec6092e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 41 additions and 20 deletions

View file

@ -105,6 +105,8 @@ public:
f32 getFov() const { return m_fov; }
void setWantedRange(const s16 range);
s16 getWantedRange() const { return m_wanted_range; }
void setCameraInverted(bool camera_inverted) { m_camera_inverted = camera_inverted; }
bool getCameraInverted() const { return m_camera_inverted; }
/*
Interaction interface
@ -219,6 +221,8 @@ private:
f32 m_fov = 0.0f;
s16 m_wanted_range = 0.0f;
bool m_camera_inverted = false; // this is not store in the player db
SimpleMetadata m_meta;
public: