球 - 球碰撞检测 - >反应 [英] Sphere - sphere collision detection -> reaction

查看:150
本文介绍了球 - 球碰撞检测 - >反应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这篇关于球 - 球碰撞检测 - >反应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆