6 ms·
Jenga – Physijs
- LukeB_UK 12y agoGetting a blank page on Chrome 37.0.2062.94 on Linux Mint
- terminalcommand 12y agoMozilla Firefox 27.0 works on Linux Mint.
- spacefight 12y ago27.0? Update...
- mataug 12y agoImpressive! I can swipe away the bottom row easily without toppling the entire tower. I guess you don't take into account friction associated.
- tmoullet 12y agoThe gravity constant (or the density of the blocks) seems to be a little low. Like playing Jenga on the moon.
- mikeash 12y agoYou 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/ http://woodgears.ca/jenga_pistol/
- ebbv 12y agoDoesn't work in Safari 7.0.6
- MBCook 12y agoWorks fine for me. Slow as hell if I have integrated graphics on, but that's to be expected. Works great when on discreet.
- thespace123 12y agoNeeds the ability to rotate the table. Other than that really fun
- SchizoDuckie 12y agoNeeds 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.
- drhodes 12y agoI 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())
- huborg 12y agoTry picking up a block in the middle, you can get the whole tower to float on it.
- _random_ 12y agoNot bad, just like OpenGL in 90s.
- msl 12y agoBut quite unlike modern OpenGL, which does not simulate physics at all.
- killertypo 12y agoimprove 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.
- allworknoplay 12y agoI 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.
- aikah 12y ago3fps on my macbook pro(chrome latest)
- barsonme 12y agoYeah. I have a standard dell inspiron n5040 and using the latest Firefox on #! debian stable I topped out at round 8 fps.
- petepete 12y agoWow, 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).
- ygra 12y agoApparently wood got very bouncy and lost a lot of friction since last time I played this in real.
- bluedino 12y agoDoes not work on FireFox 33. Game shows but I can't grab pieces.
- sramsay 12y agoThis is amazing, but I'm definitely able to do some impossible things with it.
- namuol 12y agoWhy do so many physics demos seem to use the Moon's gravity constant?
- deleted 12y ago[deleted]
- walrus 12y agoIt'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 ));
- spyder 12y agoIt shows 60 and 40 fps but the movement's are slow for me and have a strange pulsing effect.
- xbmcuser 12y agoGive more control allow to move the block over other axis as I would love to set a falling domino with this.