Add world based axis modification to rotations

This commit is contained in:
2024-09-29 15:46:59 -04:00
parent 47c15f97bc
commit 79667be458
3 changed files with 26 additions and 2 deletions

View File

@@ -42,12 +42,12 @@ namespace fgl::engine::gui
if ( ImGui::IsKeyDown( ImGuiKey_RightArrow ) )
{
pitch_change.addZ( delta_time * yaw_rate );
pitch_change.addZWorld( delta_time * yaw_rate );
}
if ( ImGui::IsKeyDown( ImGuiKey_LeftArrow ) )
{
pitch_change.addZ( -( delta_time * yaw_rate ) );
pitch_change.addZWorld( -( delta_time * yaw_rate ) );
}
Vector move_dir { 0.0f };