Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physic Engine support #235

Closed
ellisonleao opened this issue Jun 14, 2013 · 10 comments
Closed

Physic Engine support #235

ellisonleao opened this issue Jun 14, 2013 · 10 comments

Comments

@ellisonleao
Copy link
Contributor

I guess we could do something great physics for melonjs using Verlet JS [1]. I don't know if this was discussed already in the groups but i've found this lib today and it's fantastic.

[1] http://subprotocol.com/verlet-js/

@obiot
Copy link
Member

obiot commented Jan 20, 2014

(Renaming this ticket)

Just stumbled on this yesterday, seems to be nice and simple too :
http://wellcaffeinated.net/PhysicsJS/

@obiot
Copy link
Member

obiot commented Jan 27, 2014

Adding back here discussion on chipmunk from ticket #145 (to avoid double ticket entries)

@obiot
Copy link
Member

obiot commented Feb 12, 2014

another candidate :
https://github.com/schteppe/p2.js

@aaschmitz
Copy link
Contributor

Nice list with Physics Engines:
https://github.com/bebraw/jswiki/wiki/Physics-libraries

@ellisonleao
Copy link
Contributor Author

👍

@parasyte
Copy link
Collaborator

I had a quick look at all of the demos on my iPhone 4S, and the only one that ran reasonably well was Matter-js. However, it was also the most inaccurate in terms of collision resolution. (Objects tend to "meld" together under high forces.)

I guess they all deserve some closer inspection. A good tool for comparison would be using a single renderer and swapping out the physics engine. Then record how many objects can be simulated while maintaining ~60fps.

@obiot
Copy link
Member

obiot commented Mar 20, 2014

Although it does not seem to be really maintained (last commit was 9 months ago), what about verlet ? as from my understanding it was a more simple (and I then suppose lighter) implementation that might fit with basic platformer or RPG game style

@parasyte
Copy link
Collaborator

Verlet-js was incredibly slow on my iPhone 4S.

@aaschmitz
Copy link
Contributor

Maybe optimizing and adding new features (bounciness/restitution, mass, force) in the existing melonJS physics engine, like the hints in the links below:

http://www.ibm.com/developerworks/web/library/wa-build2dphysicsengine/index.html
http://gamedevelopment.tutsplus.com/software-and-tools/c

@obiot
Copy link
Member

obiot commented Nov 21, 2014

now that we have way better physic/collision implementation in melonJS these two links are making much more sense with the current 2.0.0 :P

@obiot obiot reopened this Nov 7, 2017
@obiot obiot mentioned this issue Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants