Fork me on GitHub

Jiglib in GLGE

So, I’ve been a bit busy/lazy of late with regard to GLGE but I’ve doing a bit of work on something different. A physics demo in javascript using GLGE. When I started there where no 3D physics libraries for javascript. I knew I wouldn’t have time to write one from scratch, but I had played with jiglibflash a bit in the past so I decided it was time for a port.

At this point I have to say the jiglibflash guys have an amazing library and have done a fantastic job porting the original over to flash, which made getting it into javascript that much easier.

I’m happy to say that the port went faster and better then I was anticipating. The simlarlarities between JS and AS3 ment I didn’t have to spend too much time messing about with syntax. At the moment it’s not working quite right in vanilla GLGE but I’ll be fixing that shortly, in the mean time I’ve hacked a bit and there is a little demo up at:

Live Demo

Hopefully, this will be usefull for people working with all the webgl frameworks and libraries and not just GLGE. I’ve intentially not hooked anything directly into GLGE so it should be just as easy for people to get physics working with c3dl, cubicvr, energizeGL, O3D, sceneJS, spidergl, webglu,…. or even use it directly with raw webgl. The code is now available at:

The Source

PS shout if I missed out one of the scene graph libs I tried to get them all