enpu Posted January 10, 2014 Share Posted January 10, 2014 What 2D physics engines there is, that are written in JavaScript? (not ported) PhysicsJS: https://github.com/wellcaffeinated/PhysicsJS/p2.js: https://github.com/schteppe/p2.jsverlet-js: https://github.com/subprotocol/verlet-jsJPE: https://github.com/colorhook/JPENewton: https://github.com/hunterloftis/newtonMatter.js: https://github.com/liabru/matter-js Quote Link to comment Share on other sites More sharing options...
Ezelia Posted January 10, 2014 Share Posted January 10, 2014 would be interested in a performance comparison from developers who used them Quote Link to comment Share on other sites More sharing options...
enpu Posted January 10, 2014 Author Share Posted January 10, 2014 Yeah that would be really useful! If none exists, i might do it myself. Quote Link to comment Share on other sites More sharing options...
ozdy Posted January 12, 2014 Share Posted January 12, 2014 I'm using Nape, that is HaXe, but it compiles to .js. As for performance comparison, I don't know, haven't used other engines - you can check it yourself - http://m.girlsgogames.com/html5games/en_US/Happy+Stacking/ Quote Link to comment Share on other sites More sharing options...
jamesaustin Posted January 16, 2014 Share Posted January 16, 2014 There is an efficient JavaScript 2D physics engine as part of the open source Turbulenz Engine. There are some samples online:Physics2D Physics2D constraints Physics2D callbacks Quote Link to comment Share on other sites More sharing options...
harrywatson Posted February 5, 2014 Share Posted February 5, 2014 Box 2d or Createjs Maybe?Maybe both? https://github.com/kripken/box2d.js/ http://box2d-js.sourceforge.net/ http://www.createjs.com/#!/CreateJS http://www.luxanimals.com/blog/article/combining_easel_box2d Quote Link to comment Share on other sites More sharing options...
enpu Posted February 5, 2014 Author Share Posted February 5, 2014 @harrywatson box2d is ported from C++ Quote Link to comment Share on other sites More sharing options...
harrywatson Posted February 5, 2014 Share Posted February 5, 2014 True enough @Enpu here is the simplest game engine I've found http://corehtml5canvas.com/code-live/ch09/ungame/ungame.html It's on >> http://corehtml5canvas.com/ http://corehtml5canvas.com/code-live/ Quote Link to comment Share on other sites More sharing options...
harrywatson Posted February 19, 2014 Share Posted February 19, 2014 Here's something else you might like to look at... http://www.ibm.com/developerworks/web/library/wa-build2dphysicsengine/index.html Quote Link to comment Share on other sites More sharing options...
harrywatson Posted February 21, 2014 Share Posted February 21, 2014 Found another one http://www.arc.id.au/CanvasAnimation.html http://www.arc.id.au/CangoUserGuide.html Quote Link to comment Share on other sites More sharing options...
Ezelia Posted February 22, 2014 Share Posted February 22, 2014 Please read the title twice (or more) before posting ... -__- Quote Link to comment Share on other sites More sharing options...
harrywatson Posted February 22, 2014 Share Posted February 22, 2014 What do you mean @Ezelia? Quote Link to comment Share on other sites More sharing options...
enpu Posted February 28, 2014 Author Share Posted February 28, 2014 @harrywatson, this topic is for physics engines, not for graphics libraries or game engines. Here is a new one:https://github.com/liabru/matter-js Quote Link to comment Share on other sites More sharing options...
Gio Posted March 1, 2014 Share Posted March 1, 2014 For completeness: I also wrote a physics engine in JavaScript that is not a port (fun sample game here). However it's tied to the Wade Engine and it isn't free, so not everyone's cup of tea I guess. But pretty cool and fast nonetheless. It isn't a port, but much of the collision detection and resolution algorithm is inspired by the impulse engine, which is a light-weight C++ open-source engine. I would recommend the impulse engine as a starting point to anyone looking to write their own physics engines. Quote Link to comment Share on other sites More sharing options...
triqui Posted March 10, 2014 Share Posted March 10, 2014 actually JPE is a port of APECopyright © 2013 http://colorhook.comauthor: [email protected]version: 1.0.0license: Released under the MIT License.Transplant from Flash AS3 APE Enginehttp://www.cove.org/ape/Copyright © 2006, 2007 Alec CoveReleased under the MIT Licenses. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.