diff --git a/PoolAI/Ball.pde b/PoolAI/Ball.pde index 75459e4..69cb501 100644 --- a/PoolAI/Ball.pde +++ b/PoolAI/Ball.pde @@ -85,6 +85,7 @@ class Ball { //------------------------------------------------------------------------------------------------------------------------------------------------------------------ void update() {//update ball (kind of useless but I though I would do more than just apply friction each update) applyFriction(); + isInHole(); } //------------------------------------------------------------------------------------------------------------------------------------------------------------------ //draw a circle representing the ball @@ -126,4 +127,4 @@ class Ball { } return clone; } -} \ No newline at end of file +}