diff options
Diffstat (limited to 'src/states/world_builder_state.cpp')
| -rw-r--r-- | src/states/world_builder_state.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/states/world_builder_state.cpp b/src/states/world_builder_state.cpp index a01935c..f28f70a 100644 --- a/src/states/world_builder_state.cpp +++ b/src/states/world_builder_state.cpp @@ -480,6 +480,16 @@ namespace Donut ImGui::Spacing(); + if (ImGui::Button("Start Simulation", ImVec2(ImGui::GetWindowWidth() - 20, 30))) + { + auto& engine = Application::get().get_engine(); + engine.load_objects_from_scene(m_scene.objs); + + Application::get().get_state_manager().switch_to_state("Simulation"); + } + + ImGui::Spacing(); + if (ImGui::Button("Back to Config", ImVec2(ImGui::GetWindowWidth() - 20, 30))) Application::get().get_state_manager().switch_to_state("Config"); |
