Ball to Ball Collision - Detection and Handling

前端 未结 14 1606
逝去的感伤
逝去的感伤 2020-11-22 05:29

With the help of the Stack Overflow community I\'ve written a pretty basic-but fun physics simulator.

\"alt

14条回答
  •  梦如初夏
    2020-11-22 05:47

    A good way of reducing the number of collision checks is to split the screen into different sections. You then only compare each ball to the balls in the same section.

提交回复
热议问题