Skip to content

Commit

Permalink
Added to do comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mapierce committed Mar 29, 2020
1 parent fbeba59 commit f34818b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ball.pde
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class Ball {
float targetY = current.location.y + sin * (Constants.Simulator.RADIUS * 2);
float ax = targetX - other.location.x;
float ay = targetY - other.location.y;
// if current overlaps other, move it away
current.velocity.x -= ax;
current.velocity.y -= ay;
}
Expand Down

0 comments on commit f34818b

Please sign in to comment.