Блог пользователя R4mt1n

Автор R4mt1n, 9 лет назад, По-английски

How can I solve this problem please help :)

34E - Collisions

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

I think you shold emulate whole process.
1. Calculate time of first collision.
2. Move all balls to this time.
3. "Collide" pairs of balls if they stay at the same point.
4. Return to step 1

Repeat process until time of first collision greater than t.