Physics Engine Support?

It would be useful to have access to a physics engine, such as Box2d or Chipmunk.

http://www.box2d.org/
http://code.google.com/p/chipmunk-physics/
[import]uid: 1560 topic_id: 255 reply_id: 300255[/import]

Yes any comment on this please, won’t be so hard to wrap box2d in it is it ? [import]uid: 2734 topic_id: 255 reply_id: 390[/import]

I actually submitted this one on a wish list before joining the company :slight_smile: The nice thing about both Chipmunk and Box2d is that they both have reasonable licensing terms: MIT and zlib licensing (http://en.wikipedia.org/wiki/Zlib_License) rather than GPL. Of the two, I’d say that box2d looks like a better target.

The idea would be to do more than just “wrap” it, though. The fundamental goal of Corona is that it has to be a lot easier to use than the stuff underneath it – otherwise, you may as well just use “the stuff underneath it” directly. [import]uid: 3007 topic_id: 255 reply_id: 438[/import]

Just bumping this post/feature request for a physics library. It would be great to have a wrapped engine like box2d (rather than searching/building native lua ports, which don’t really exist or would run slowly), possibly with the other Corona ‘make-it-easier’ functions you mentioned, Evan.

In addition, it would be great to have a 2d/vector maths or matrix library to assist with basic maths for games and other interactions. I don’t know enough about binding Lua to external libraries to know the tradeoffs of building wrappers for external library code vs. building a native Lua library for things like this - it might be that it’s easier or just as fast to build a native Lua library to handle maths like this. It might also depend on whether you’d consider wrapping 3d vectors and 4x4 matrices as well.

These features, along with other things like better sound function support (vol/pan/loop), bitmap/pixel controls, etc, obviously start competing with other game libraries like Cocos2d. Does the roadmap for Corona generally include features that would make it easier to build high-performance 2d games and other simulations? Or, is this stuff really left in the domain of objective-c/c/c++ apps and sdk’s like Cocos2d?
[import]uid: 4700 topic_id: 255 reply_id: 882[/import]

Feature added in our feature bucket for 1.2

:slight_smile:

Carlos [import]uid: 24 topic_id: 255 reply_id: 910[/import]

I like these ideas a lot! There are several native C libraries I’ve been using in my existing iPhone applications. What are the chances of a feature to utilize native code libraries from Corona? [import]uid: 5614 topic_id: 255 reply_id: 1234[/import]