mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Use matrix4::getRotationRadians
This commit is contained in:
parent
b6c71b2379
commit
d74af2f1a7
10 changed files with 34 additions and 28 deletions
|
@ -74,9 +74,15 @@ public:
|
|||
|
||||
v3f getSelectionPos() const { return m_selection_pos; }
|
||||
|
||||
void setSelectionRotation(v3f rotation) { m_selection_rotation = rotation; }
|
||||
void setSelectionRotationRadians(v3f rotation)
|
||||
{
|
||||
m_selection_rotation_radians = rotation;
|
||||
}
|
||||
|
||||
v3f getSelectionRotation() const { return m_selection_rotation; }
|
||||
v3f getSelectionRotationRadians() const
|
||||
{
|
||||
return m_selection_rotation_radians;
|
||||
}
|
||||
|
||||
void setSelectionMeshColor(const video::SColor &color)
|
||||
{
|
||||
|
@ -129,7 +135,7 @@ private:
|
|||
std::vector<aabb3f> m_halo_boxes;
|
||||
v3f m_selection_pos;
|
||||
v3f m_selection_pos_with_offset;
|
||||
v3f m_selection_rotation;
|
||||
v3f m_selection_rotation_radians;
|
||||
|
||||
scene::IMesh *m_selection_mesh = nullptr;
|
||||
video::SColor m_selection_mesh_color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue