Is there a recommended 2D Rigid Body Library to be used with OpenFL ? I am interested to build gear simulation, something like this
https://codepen.io/liabru/pen/xxjXXp but using sprites or shape types of OpenFL.
Any advice is highly recommended.
I’ve heard good things about
Nape in AS3. It appears to support Haxe and OpenFL too.
February 27, 2023, 5:40pm
I used box2d in as3 and don’t remember having to complain about it. There is a haxe version :
You will probably need something like CodeAndWeb’s PhysicsEditor :
Just found documentation for box2D
Box2DFlash it seems to support gears as well
February 27, 2023, 6:19pm
I was speaking about box2d yes, I used it with PhysicsEditor years ago and it worked well. I never pushed a lot on physics though so I can’t comment much.
Nape’s repo not being updated for a long time could be because there is nothing to update ? Nape has been out there for quite a while
Yea, but for box2d am I right that it does not support HTML5 ?
February 27, 2023, 6:24pm
Probably yes, I only used the as3 version I don’t know about the haxe one. I guess if it supported html5 target then it would be advertised as such ?
Yes, I found this
discussion , I don’t think its easy to integrate box2d.js into an existing openFL project…
I have this collection of physics links for Haxe. Some are 3D.
Recently, I started a mobile game with NME, and I wanted to give a try to nape. Since I’ve seen the NME’s runnermark, I’ve wanted to try the tilelayer library too. So why not dot it at the same time !
Overall view Nape This month was annonced the 2.0...