Live data from Hacker News

Verlet-js - Open source dynamic body physics engine

subprotocol.com

1–10 of 57 posts

Re: Verlet-js - Open source dynamic body physics engine

#2
Hi HN. I recently open sourced a verlet physics engine that I wrote for fun. Four example experiments are in there so far. I have a few other experiment ideas in mind that I hope to get implemented soon. Anyways, it was a blast creating this and thought others might like to look/play with it too.

Cheers

Re: Verlet-js - Open source dynamic body physics engine

#3

Hi HN. I recently open sourced a verlet physics engine that I wrote for fun. Four example experiments are in there so far. I have a few other experiment ideas in mind that I hope to get implemented soon. Anyways, it was a blast creating this and thought others might like to look/play with it too. Cheers

Looks great, thanks for sharing. One thing I would suggest is to not worry about rendering the physics on the canvas, threejs is good at what it does and lacks a good physics engine. It's just my opinion, but I think the project would benefit from either making it work with threejs or by not solving the render problem, and just focus on doing great physics, so that people can use the results in their threejs scenes.

Great work though

Re: Verlet-js - Open source dynamic body physics engine

#4
post #3

Hi HN. I recently open sourced a verlet physics engine that I wrote for fun. Four example experiments are in there so far. I have a few other experiment ideas in mind that I hope to get implemented soon. Anyways, it was a blast creating this and thought others might like to look/play with it too. Cheers

Looks great, thanks for sharing. One thing I would suggest is to not worry about rendering the physics on the canvas, threejs is good at what it does and lacks a good physics engine. It's just my opinion, but I think the project would benefit from either making it work with threejs or by not solving the render problem, and just focus on doing great physics, so that people can use the results in their threejs scenes.…

This is a really great point. Abstracting it away shouldn't be bad, and it is possible to extend by vec2 implementation to 3d. After I finish my next batch of examples I will venture down this path.

Thank you for the feedback!

Re: Verlet-js - Open source dynamic body physics engine

#6
post #5

There is a similar project named Coffee-Physics [1] by Soulwire. [1] https://github.com/soulwire/Coffee-Physics

Also

Box2D JS and Box2Dweb

http://box2d-js.sourceforge.net/

https://code.google.com/p/box2dweb/

Bullet JS

https://github.com/adambom/bullet.js/

Cannon.js

https://github.com/schteppe/cannon.js

Ammo.js

https://github.com/kripken/ammo.js/

Physijs

http://chandlerprall.github.io/Physijs/

JigLibJS

https://github.com/supereggbert/JigLibJS

Re: Verlet-js - Open source dynamic body physics engine

#8

Hi HN. I recently open sourced a verlet physics engine that I wrote for fun. Four example experiments are in there so far. I have a few other experiment ideas in mind that I hope to get implemented soon. Anyways, it was a blast creating this and thought others might like to look/play with it too. Cheers

Thank you for open sourcing this. The spider example is just awesome!! Good Job!
Post reply on HN