Skip to content

Commit

Permalink
use particle-life framework version v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-mohr committed Mar 7, 2022
1 parent dbdb714 commit f96bd06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/particle_life/app/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f96bd06

Please sign in to comment.