Skip to content
Snippets Groups Projects
Verified Commit b87e6d71 authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

increase resolution of velocity slider

parent 044605b5
Branches
Tags
1 merge request!103Added project wobble_bobble and refactored some parts of the framework
...@@ -772,7 +772,7 @@ int main(int argc, const char **argv) { ...@@ -772,7 +772,7 @@ int main(int argc, const char **argv) {
beta = 0.75f; 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); ImGui::SameLine(0.0f, 10.0f);
if (ImGui::Button("Reset##particle_velocity")) { if (ImGui::Button("Reset##particle_velocity")) {
resetParticles(particles, initialVelocity); resetParticles(particles, initialVelocity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment