almutama / cakejs

Automatically exported from code.google.com/p/cakejs
0 stars 0 forks source link

Physics engine #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A simple physics engine would make it easier to make fancy animations. How
to integrate it with the scenegraph is a bit of a mystery. 

CanvasNode#usePhysics, maybe.

Could start with a crap particle dynamics sim and go to rigid-body sim from
there. Or maybe there is a library for this and we could use that.

Integrates with the collision detection stuff.

Original issue reported on code.google.com by Ilmari.H...@gmail.com on 15 Mar 2008 at 12:52

GoogleCodeExporter commented 9 years ago
Silly, I've recently started a very similiar project with the same name... ;)

I don't know your syntax, but I wanted to do something like applying properties 
to
groups, e.g.

var phys = new Physics();
phys.addForce('gravity', [0, 5]);

var g = new Group([someRect, anotherRect, other, rects]);
g.apply(phys);

Maybe I'm wrong, correct me if you can.

Original comment by hirszdes...@gmail.com on 24 Sep 2008 at 6:06

GoogleCodeExporter commented 9 years ago
http://box2d-js.sourceforge.net/

Integrating that might be a good start :)

Original comment by Ilmari.H...@gmail.com on 26 Sep 2008 at 10:27