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:
parent
fc3d6c1dd9
commit
a8ec6092e2
7 changed files with 41 additions and 20 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue