Skip to content

Commit

Permalink
Update Element.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ccetl authored Apr 10, 2024
1 parent ad6542a commit 54d1ada
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/de/ccetl/jparticles/core/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public Element(double x, double y, double radius, double vx, double vy, int colo

public void updateRotation(double delta) {
rotation += rotationSpeed * delta;
while (rotation >= 360) {
rotation -= 360;
}
rotation %= 360;
}

public double getRadius() {
Expand Down

0 comments on commit 54d1ada

Please sign in to comment.