From 6ae10a27a9d23213d31778a44fb4ce79b8d2ca15 Mon Sep 17 00:00:00 2001 From: robinarthur Date: Mon, 23 Apr 2018 08:29:11 +0200 Subject: [PATCH] fixe Issue #1 --- PoolAI/Ball.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}