When multiple collisions occur between balls, sometimes they stick together. Mostly in cases of either of the balls having high velocity.
2 Answers
There's probably something on the balls causing them to stick together. Try cleaning them with a soft cloth or wet paper towel.
- 1\$\begingroup\$ Should be a comment, but still, hehe \$\endgroup\$Bart van Heukelom– Bart van Heukelom2010-08-10 09:30:26 +00:00Commented Aug 10, 2010 at 9:30
- \$\begingroup\$ yea mann...tried it with some napkin...bt dunno y it has started revolvin around wen i try to move it :) \$\endgroup\$Vishnu– Vishnu2010-08-10 09:51:12 +00:00Commented Aug 10, 2010 at 9:51
Can we see some physics code? How are you handling it? What do you mean by 'multiple collisions'? We're going to struggle helping without more detail.
Only reason I can think of is that the physics is treating it as a collision rather than an explosion (i.e. they stick together instead of flying apart).
EDIT: You could've said that in the original post. I also found this post on gamedev.net:
wen multiple collision occurs between 2 or more balls..they tend to overlap...or sometimes rotate around themselves....cant figur out wy this is happening...
The problem is probably that your movement speeds mean the balls end up inside each other, and you do collision from there. A better option would be seeing if the objects intersect, and separating them before trying to move them.
- \$\begingroup\$ stick together means they overlap...sometimes they get on top of one another and revolve like anythin... \$\endgroup\$Vishnu– Vishnu2010-08-10 09:52:08 +00:00Commented Aug 10, 2010 at 9:52
- \$\begingroup\$ hmm..actually its a carrom board game..nt pool...said that in the header..coz i thought ppl wudnt understand..dey've got same physics... is there some place were i can share my swf? \$\endgroup\$Vishnu– Vishnu2010-08-10 10:38:59 +00:00Commented Aug 10, 2010 at 10:38
- 2\$\begingroup\$ @Vishnu Ajit: Over here we like to use full sentences \$\endgroup\$Bart van Heukelom– Bart van Heukelom2010-08-10 14:50:23 +00:00Commented Aug 10, 2010 at 14:50