27 comments

[ 3.9 ms ] story [ 61.7 ms ] thread
Impressive!

I can swipe away the bottom row easily without toppling the entire tower. I guess you don't take into account friction associated.

The gravity constant (or the density of the blocks) seems to be a little low. Like playing Jenga on the moon.
You could do that in real life if you did it fast enough. It's basically the same as the classic trick with yanking a tablecloth off of a table.

It's much easier here as it looks like the gravity is quite a bit lower (alternately, the simulation is much slower than realtime) which makes the friction forces substantially weaker.

For an example of the principle in action with a real Jenga game, see: http://woodgears.ca/jenga_pistol/

Doesn't work in Safari 7.0.6
Works fine for me. Slow as hell if I have integrated graphics on, but that's to be expected. Works great when on discreet.
Needs the ability to rotate the table. Other than that really fun
Needs to be able to rotate the view and a bit more gravity. Other than that awesome!

little bug: if you swipe one of the bottom blocks really fast it'll stick to the mouse and not let go. This way you can swipe the whole stack from the bottom.

I ran into the same bug, I think there is an easy fix. When swiping one of the blocks out, my cursor left the window. The event system missed the mouseup that happened out-of-window. So, add another handler. onMouseLeaveContext(dropBlock())
Try picking up a block in the middle, you can get the whole tower to float on it.
Not bad, just like OpenGL in 90s.
But quite unlike modern OpenGL, which does not simulate physics at all.
improve gravity and friction, a bit too floaty and the lack of friction means i can pull out entire mid sections in one fell swoop without loosing the tower.
I just did this, it was thrilling, like ripping a table cloth out from under a table setting. I wish I could do that in regular jenga.
3fps on my macbook pro(chrome latest)
Yeah. I have a standard dell inspiron n5040 and using the latest Firefox on #! debian stable I topped out at round 8 fps.
Wow, this is great. Was struggling with my touchpad for a few seconds until I remembered I have a touchscreen (which, other than this, I use for nothing).
Apparently wood got very bouncy and lost a lot of friction since last time I played this in real.
Does not work on FireFox 33. Game shows but I can't grab pieces.
This is amazing, but I'm definitely able to do some impossible things with it.
Why do so many physics demos seem to use the Moon's gravity constant?
(comment deleted)
It's a trick to make the simulation more stable. Stacking in physics engines is difficult. It's a careful balance between speed and stability.

If this demo took place on Earth, the Jenga blocks would have to be 1.96 meters long in order for the gravity to be realistic. Alternatively, if the Jenga blocks were the standard length of 7.5 cm, this would take place on a planet where gravity is 0.375 m/s² (less than the Moon).

If you want to see what the simulation looks like with Earth's gravity, change line 46 of examples/jenga.html (at commit e067679006a92dbbd02a81e990a69a86a5812e81) to

  scene.setGravity(new THREE.Vector3( 0, -784, 0 ));
It shows 60 and 40 fps but the movement's are slow for me and have a strange pulsing effect.
Give more control allow to move the block over other axis as I would love to set a falling domino with this.