球 - 球碰撞检测 - >反应反应、GT

2023-09-11 00:12:18 作者:你别瞅了,我没有

我需要一个算法,当检测到两个球体碰撞,并在此至极人会承受瞬间碰撞后的方向。

I need to make an algorithm that detects when two spheres collide, and, the direction that wich one will take an instant after the collision.

让说,想象一下,当你在游泳池比赛打开你的表像,所有的球碰撞一个又一个随机。

Let say, Imagine like when you open your table in a pool match, all the balls are colliding one to another "randomly".

所以,从c写自己的$ C $之前,我就在想,如果有一个已经实现了这一点那里。

So, before starting to write the code myself, I was thinking if there is already a implementation of this out there.

THX提前!

Cyas .-

推荐答案

您可以在这里找到一个很好的教程:的链接

You can find a good tutorial here: Link