chikavelvet / 3DPool

0 stars 0 forks source link

Need to check that balls have stopped before ending current turn! #3

Closed Rishi-Amarnani closed 6 years ago

Rishi-Amarnani commented 6 years ago

We cannot end the current turn without checking if the balls have stopped moving first.

On several occasions I have gotten a ball in after my turn has ended. If the turn had no ended prematurely, that ball going in would have earned me the next turn.

Rishi-Amarnani commented 6 years ago

I'm thinking we can check one ball every frame and keep doing that until all of the balls have stopped.

We should wait til they have truly stopped because checking if they are below 0.01 and then stopping them artificially could be the difference between a pocketed and non-pocketed ball.