From b87e6d71b73dbdb08183946c6f4b10c2850c2d76 Mon Sep 17 00:00:00 2001 From: Josh Morgenstern <josh@morgenstern.dev> Date: Tue, 1 Feb 2022 12:58:58 +0100 Subject: [PATCH] increase resolution of velocity slider --- projects/wobble_bobble/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/wobble_bobble/src/main.cpp b/projects/wobble_bobble/src/main.cpp index f58ad91e..c29c327a 100644 --- a/projects/wobble_bobble/src/main.cpp +++ b/projects/wobble_bobble/src/main.cpp @@ -772,7 +772,7 @@ int main(int argc, const char **argv) { beta = 0.75f; } - ImGui::DragFloat3("Initial Velocity", reinterpret_cast<float*>(&initialVelocity)); + ImGui::DragFloat3("Initial Velocity", reinterpret_cast<float*>(&initialVelocity), 0.001f); ImGui::SameLine(0.0f, 10.0f); if (ImGui::Button("Reset##particle_velocity")) { resetParticles(particles, initialVelocity); -- GitLab