作者热门文章
- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
可以使用以下算法完成简单的布料模拟:
def tick(dt):
for p1 in particles:
for bound in p.bounds:
p2 = bound.particle
p2.vel += p1.pos + bound.stable_pos - p2.pos
p1.pos += p1.vel * dt
作为测试,我尝试了 implementing it在 JavaScript 中。不幸的是,这很难扩展。随着粒子数量的增加,性能下降得非常快,并且限制非常低。有没有办法并行化这个算法?你能把它描述成一个简单的伪代码吗?
最佳答案
下面是平行布仿真设计的详细说明:http://atarazanas.sci.uma.es/docs/tesisuma/16614860.pdf
关于javascript - 布料仿真系统并行化算法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15681833/
我是一名优秀的程序员,十分优秀!