Introduction - If you have any usage issues, please Google them yourself
According to vector operations, to achieve a sphere with the line, the ball collision detection between, according to the need to add gravity parameters. Also tested in the j2me platform collision sphere, of course, can be customized GUI.