128 reputation
5
bio website
location United Kingdom
age
visits member for 3 years, 7 months
seen 7 hours ago

Click here to edit


Jul
20
comment Is there an algorithm for a pool game?
I've just knocked up my version of your code here: ideone.com/DhsAoW and I'm getting -0.707 for a positions of 110,90 and 100,100, and velocities of 0,2 and 0,-3. This is a more or less head-on collision. (Assume the initial radius-based collision detection check has already occurred).
Jul
20
comment Is there an algorithm for a pool game?
What about if dot is less than zero? I've been investigating this pseudocode (and the one you linked too, but the other one ends up with my trying to take the square of a negative number - perhaps that's the problem you identified with it). Surely you want to produce a result with every set of input positions and velocities?
Jul
11
awarded  Supporter
Jul
11
awarded  Scholar
Jul
11
accepted How to take advantage of multiple core GPUs
Jul
10
awarded  Student
Jul
10
awarded  Editor
Jul
10
revised How to take advantage of multiple core GPUs
edited title
Jul
10
asked How to take advantage of multiple core GPUs
Apr
9
awarded  Citizen Patrol
Mar
20
answered Understanding MotionEvent to implement a virtual DPad and Buttons on Android (Multitouch)