i try to follow that as i much as i can,
but i m not able to apply all physical phenomenon in code, can somebody please tell me, where i m mistaken or i m still doing some silly programming mistake , the balls are moving when i m not calling bounce method and i m unable to avail the bounce method and ball are moving towards left side instead of falling/ending on floor,
Can some body can recommend me some better way or similar way to accomplish this task of applying physics on two ball or more balls ,
But when my program logic doesn't work as I desire it to, I put on my debugging hat and start debugging like crazy. If you haven't already done so, either use a decent debugger or pepper your code with printlns so that you can see why the program is not behaving as it should.