schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.71k stars 711 forks source link

Example cannon.js #108

Open metmet opened 11 years ago

metmet commented 11 years ago

hi, i create this example http://www.webgl.it/tests/domino.html can be included this among the examples of cannon ? also because when the started scene, obj is not part on floor , but first go up and then down?

schteppe commented 11 years ago

Nice demo! Yes, I'll add it, but it needs to be converted to the CANNON.Demo format...

The initial up movement is probably because the bodies are penetrating the ground when starting the simulation. Maybe move them up a bit?

metmet commented 11 years ago

@schteppe i have converted to the CANNON.Demo format, and i try the commit in Dev branch but "Permission to schteppe/cannon.js.git denied to metmet." I fork cannon, and commit domino.html to https://github.com/metmet/cannon.js/blob/master/demos/domino.html

ps : i added into the code :

if this is not allow, i remove this part of code

tnk for all Matteo