TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Newton - Javascript Physics Library

62 点作者 evlapix超过 11 年前

8 条评论

dougk16超过 11 年前
Haven&#x27;t looked too much at the API, but right off the bat I would suggest a more compelling suite of demos, with collision, stacking, etc...I may just be missing the links.<p>You&#x27;re definitely targeting a gaping niche IMO though (same one I&#x27;m trying to fill through a side project). Using Box2D in JavaScript feels like programming in assembly sometimes.
评论 #6601917 未加载
munchor超过 11 年前
You really need to submit a single newton.js to GitHub so people can try it out more easily. (how I did it for my library[1]. Other than that, I&#x27;ve been using Chipmunk-JS lately and struggling a bit here and there so I very much look forward to using Newton.<p>[1]: <a href="https://github.com/davidgomes/pentagine/blob/master/tools/merge.rb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;davidgomes&#x2F;pentagine&#x2F;blob&#x2F;master&#x2F;tools&#x2F;me...</a><p>EDIT: Already filled in a pull request, the code looks quite good.
评论 #6626720 未加载
feistyio超过 11 年前
I wish you all the best with your ambitious project ^w^<p>You should seriously consider employing techniques such as LLJS[1] to avoid thrashing the GC.<p>At the very least use typed arrays à la glMatrix[2] rather than a Vector prototype.<p>Typed arrays have the added benefit of interoperability with WebGL and Canvas2D via Function::apply.<p>---<p>[1] <a href="http://mbebenita.github.io/LLJS" rel="nofollow">http:&#x2F;&#x2F;mbebenita.github.io&#x2F;LLJS</a><p>[2] <a href="http://glmatrix.net" rel="nofollow">http:&#x2F;&#x2F;glmatrix.net</a>
评论 #6601786 未加载
评论 #6626846 未加载
angersock超过 11 年前
<i>&quot;Unfortunately, these ports combine the clarity and conciseness of C++ with the speed of JavaScript.&quot;</i><p>This is exactly how I felt using the Box2D port for our swarm project--itself a port of an ActionScript port of a C++ library.
DanielRibeiro超过 11 年前
I wonder how it compares to p2.js[1], another recent 2D physics engine, but created by the same person who created the 3D physics engine Cannon.js[2]<p>[1] <a href="https://github.com/schteppe/p2.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;schteppe&#x2F;p2.js</a><p>[2] <a href="https://github.com/schteppe/cannon.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;schteppe&#x2F;cannon.js</a>
评论 #6626765 未加载
pstuart超过 11 年前
This would be perfect for my idea of a tool for teaching programming to kids: a small game framework that they can program with a DSL, then teach them to hack the DSL....
coherentpony超过 11 年前
I can&#x27;t find a license.
sambeau超过 11 年前
This would go really nicely with Snap.svg. Hurry up and finish it, please!
评论 #6626856 未加载