3-axis rotation, and some corrections in editor mode

This commit is contained in:
Jano211
2023-08-11 21:22:46 +02:00
committed by Hirek
parent b14c1d9718
commit e5c317a7bf
6 changed files with 152 additions and 30 deletions

View File

@@ -137,7 +137,7 @@ basic_editor::translate_memorycell( TMemCell *Memorycell, float const Offset ) {
void
basic_editor::rotate( scene::basic_node *Node, glm::vec3 const &Angle, float const Quantization ) {
glm::vec3 rotation { 0, Angle.y, 0 };
glm::vec3 rotation{Angle.x, Angle.y, Angle.z};
// quantize resulting angle if requested and type of the node allows it
// TBD, TODO: angle quantization for types other than instanced models