131 reputation
15
bio website kushagra.me
location India
age 22
visits member for 2 years, 5 months
seen Sep 18 at 19:54

Feb
4
awarded  Notable Question
Jan
14
awarded  Popular Question
Aug
14
asked Recreating Doodle Jump in Canvas - Platforms spawning out of reach
Jul
8
awarded  Supporter
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
Ah damn! My bad :( Thanks! :) I owe you one :)
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
I see some problems in your example too! Sometimes the ball rebound in mid air without colliding to any other ball as if there is an invisible ball or something. Anyway, thanks.
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
I already used your code: cssdeck.com/t/dcebfocu/9
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
Well, that don't work for large number of balls but it works for a low number of balls. Check here. I think the problem is the addition of balls on the canvas. They are added randomly and hence some of them already overlap each other at the time of their addition. Is there any way I can prevent this?
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
Thanks for this! This made my collisions much better. But the only problem I was having is sill there i.e overlapping of the balls. I don't know how to prevent the balls from overlapping each other. You can check it here cssdeck.com/t/view/dcebfocu/8
Jul
8
accepted 2D Collision in Canvas - Balls Overlapping When Velocity is High
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
I don't understand this, the last lines of the function just sets the new velocity vectors of the balls so that they can move in new directions.
Jul
8
comment 2D Collision in Canvas - Balls Overlapping When Velocity is High
@Bane this didn't changed anything. Also, condition should be <= not >=. Thanks anyway
Jul
8
awarded  Editor
Jul
8
revised 2D Collision in Canvas - Balls Overlapping When Velocity is High
added 40 characters in body
Jul
8
revised 2D Collision in Canvas - Balls Overlapping When Velocity is High
edited tags
Jul
8
asked 2D Collision in Canvas - Balls Overlapping When Velocity is High
Jul
7
comment Multiple setInterval in a HTML5 Canvas game
Here's the completed game: cssdeck.com/item/preview/594/…
Jul
7
answered Box 2D Collision Question
Jul
7
awarded  Student
Jul
7
awarded  Scholar