Mouse Constraints using Jiglib AS3
Posted: 22-04-2009
Category: Development
JiglibFlash is a great physics engine for the flash platform. Combined with Papervision 3D you can do some amazing stuff. The library has been recently updated and nownot only contains a car physics model, but mouse constraints. The mouse contraint can add a new level of interactity to your scene. I've been dying to try it out, and finally after moving house i finally got my lil studio / junk room setup. Below I have created a basic scene in which several block fall from the sky on init. These can then be picked up and thrown, interacting with other objects. Just a finishing touch I Though it would be good to have shadows. The code of which is from the brilliant Andy Zupko (Article on shadow casting).
Anyway, I've provided the code below with ample commenting.
Download JigLibFlash | Download Papervision | Demo swf | Download source
Comments
There are no comments