
-----------------------------------
Mr. T
Tue Oct 25, 2005 9:18 pm

Array Question
-----------------------------------
Is it possible that if you have collision detection for a ball bouncing off an array of walls, that the ball will not collide with some walls near the end of the array because the for loop can simply not loop through all the elements of the array fast enough when a collision occurs?

-----------------------------------
beard0
Tue Oct 25, 2005 10:11 pm


-----------------------------------
Not if you do your collision detection right. :D

Just make sure that you check for all possible collisions before you allow the ball to make each move.  As long as you are not using processes, this should not be a problem that you need to really worry about.

-----------------------------------
Mr. T
Tue Oct 25, 2005 10:14 pm

Alex's Opinion
-----------------------------------
Ya, it was my collision detection.  I fixed it now, though.  Thanks.  :roll:

-----------------------------------
codemage
Wed Oct 26, 2005 11:49 am


-----------------------------------
That would only happen if you were doing movement and collision detection in parallel - which would be a really bad idea in Turing.

-----------------------------------
Mr. T
Wed Oct 26, 2005 10:33 pm

Alex's Opinion
-----------------------------------
That would only happen if you were doing movement and collision detection in parallel - which would be a really bad idea in Turing.
Lol, that's what beard0 just said.   :wink:
