aboutsummaryrefslogtreecommitdiff
path: root/src/client/hud.h
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2022-10-30 16:53:14 +0100
committerGitHub <noreply@github.com>2022-10-30 16:53:14 +0100
commit077627181ee2eac3c0dacc3d8dc49825837e474c (patch)
treea8a6298198738f2edb30bd7e733a7a0d2005affa /src/client/hud.h
parentb8292319924994352d56d6111faa73fe315d149a (diff)
downloadminetest-077627181ee2eac3c0dacc3d8dc49825837e474c.tar.xz
Allow rotating entity selectionboxes (#12379)
Diffstat (limited to 'src/client/hud.h')
-rw-r--r--src/client/hud.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/hud.h b/src/client/hud.h
index fd79183a0..b6ff84243 100644
--- a/src/client/hud.h
+++ b/src/client/hud.h
@@ -75,6 +75,10 @@ public:
v3f getSelectionPos() const { return m_selection_pos; }
+ void setSelectionRotation(v3f rotation) { m_selection_rotation = rotation; }
+
+ v3f getSelectionRotation() const { return m_selection_rotation; }
+
void setSelectionMeshColor(const video::SColor &color)
{
m_selection_mesh_color = color;
@@ -126,6 +130,7 @@ private:
std::vector<aabb3f> m_halo_boxes;
v3f m_selection_pos;
v3f m_selection_pos_with_offset;
+ v3f m_selection_rotation;
scene::IMesh *m_selection_mesh = nullptr;
video::SColor m_selection_mesh_color;