From f96bd069c19fa9d0f16898e745ed739ee3644ea2 Mon Sep 17 00:00:00 2001 From: tom-mohr <24864629+tom-mohr@users.noreply.github.com> Date: Mon, 7 Mar 2022 12:17:17 +0100 Subject: [PATCH] use particle-life framework version v0.1.0 --- build.gradle | 2 +- src/main/java/com/particle_life/app/Main.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 70f9d0f..c756276 100644 --- a/build.gradle +++ b/build.gradle @@ -66,7 +66,7 @@ repositories { dependencies { - implementation "com.github.tom-mohr:particle-life:v1.1.0" + implementation "com.github.tom-mohr:particle-life:v0.1.0" // jOOR implementation 'org.jooq:joor:0.9.14' diff --git a/src/main/java/com/particle_life/app/Main.java b/src/main/java/com/particle_life/app/Main.java index a6c5a1a..65464a2 100644 --- a/src/main/java/com/particle_life/app/Main.java +++ b/src/main/java/com/particle_life/app/Main.java @@ -448,10 +448,10 @@ private void buildGui() { } } - float[] forceFactorSliderValue = new float[]{(float) settings.forceFactor}; + float[] forceFactorSliderValue = new float[]{(float) settings.force}; if (ImGui.sliderFloat("force", forceFactorSliderValue, 0.0f, 5.0f)) { final float newForceFactor = forceFactorSliderValue[0]; - loop.enqueue(() -> physics.settings.forceFactor = newForceFactor); + loop.enqueue(() -> physics.settings.force = newForceFactor); } if (advancedGui) {