Javascript:适合初学者的物理库?

我想制作一个网页,其中包含用户可以在屏幕周围扔出的元素,并且还可以遵循某些物理行为。

The effect I'm looking for would be something like this.

我看到那里有不同的物理库,但是由于我对javascript还是很陌生,所以我想问问你推​​荐哪个实现这一效果。我认为对我来说,找到一个仍受支持或具有良好文档的库将是很棒的,因为我找到了box2D,但后来我发现它不再是最新的了

谢谢!

评论
zsed
zsed

matter.js is a good js physics library and has a great documentation on their website and their are plenty of beginner friendly tutorials on youtube for this library. However it only supports 2d physics.

点赞
评论