subprotocol最近在Github上开源了verlet-js。地址为https://github.com/subprotocol/verlet-js。verlet-js是一个集成Verlet的物理引擎,利用JavaScript编写。verlet-js支持粒子系统、距离限制、角度限制等。其Github声称基于这些基础,则可以帮助我们构建几乎任何我们所能想象到的东西。

其官网为我们提供了一下几个demo:

  1. Shapes (verlet-js Hello world)
  2. Fractal Trees
  3. Cloth
  4. Spiderweb

笔者觉得Spiderweb特别有意思,下面是它的效果截图:

Verlet-js JavaScript 物理引擎

Github地址:https://github.com/subprotocol/verlet-js

相关文章:

  • 2021-08-11
  • 2021-06-02
  • 2022-12-23
  • 2021-06-18
  • 2021-12-01
  • 2021-11-03
猜你喜欢
  • 2021-12-30
  • 2022-02-28
  • 2021-12-02
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案