Switch inputs to degrees
This commit is contained in:
@@ -22,10 +22,10 @@ namespace fgl::engine::gui
|
||||
Roll = 2
|
||||
};
|
||||
|
||||
glm::vec3 dat { rot.euler() };
|
||||
glm::vec3 dat { glm::degrees( rot.euler() ) };
|
||||
const glm::vec3 c_dat { dat };
|
||||
|
||||
constexpr float speed { 0.01f };
|
||||
constexpr float speed { 1.0f };
|
||||
|
||||
assert( &dat.x + 1 == &dat.y );
|
||||
assert( &dat.y + 1 == &dat.z );
|
||||
@@ -39,6 +39,9 @@ namespace fgl::engine::gui
|
||||
const glm::vec< 3, bool > changed_low { glm::lessThanEqual( diff, glm::vec3( -epsilon ) ) };
|
||||
const glm::vec< 3, bool > changed { changed_high || changed_low };
|
||||
|
||||
// Convert back to radians
|
||||
dat = glm::radians( dat );
|
||||
|
||||
if ( changed[ Pitch ] )
|
||||
{
|
||||
rot.pitch() = dat[ Pitch ];
|
||||
|
||||
Reference in New Issue
Block a user