Skip to content

Commit 6111af4

Browse files
committed
- remove -1 multiplier
1 parent 4bbef71 commit 6111af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter-10-object-oriented_programming_and_pvector/microscopic/microscopic.pyde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def draw():
5050
sumradii = a.d/2 + b.d/2
5151

5252
if distance.mag() < sumradii:
53-
a.propulsion -= (distance * -1).limit(0.05)
54-
b.propulsion += (distance * -1).limit(0.05)
53+
a.propulsion += distance.limit(0.05)
54+
b.propulsion -= distance.limit(0.05)
5555

5656
# draw a line between the centers of colliding amoeba
5757
line(a.location.x, a.location.y, b.location.x, b.location.y)

0 commit comments

Comments
 (0)