Skip to content

Commit 533b1b4

Browse files
committed
code should be exemplary
1 parent 37f784f commit 533b1b4

File tree

1 file changed

+1
-1
lines changed
  • processing_app/library/vecmath/vec2d/library/verlet_chain/lib

1 file changed

+1
-1
lines changed

processing_app/library/vecmath/vec2d/library/verlet_chain/lib/verlet_ball.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def adjust(vec)
2828
private
2929

3030
def verlet
31-
pos_temp = Vec2D.new(pos.x, pos.y)
31+
pos_temp = pos.copy
3232
@pos += (pos - pos_old)
3333
@pos_old = pos_temp
3434
end

0 commit comments

Comments
 (0)