弹簧动力学,两个球

问题描述

我正在努力将注意力集中在物理学上,所以我正在编写2D物理模拟。

我当前的问题是使用弹簧动力学使两个球正确地弹回。

public List<GithubCustomApi> requestAPi(string input) { List<GithubItem> repo = Build(input); GithubUser user = BuildPerson(input); ///////////////////////////////////// //I want something like this below// var stringQuery = SELECT repo.*,user.* from repo where repo.owner.id = user.id var linqQuery = from c in stringQuery select new GithubCustomApi() { fullname = c.full_name,email = c.emial ...} ///////////////////////////////////// return linqQuery; } 包含速度,GithubCustomApi()包含当前对象的弹性,obj->v是当前压缩, obj->spring是两个物体之间的角度。

碰撞检查工作正常。

我一直在盲目地尝试不同的事情,这显然是错误的:

spring.comp

此外,我想同时考虑两个物体的速度和重量。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)