PHYSICS LIBRARY
FEATURES
ZIM Physics is a helper library that works with Box2DWeb.
import from "https://zimjs.org/cdn/019/zim_physics"; OR see the NPM Package
const physics = new Physics().drag();
// drag() will default to drag all dynamic objects
// otherwise can add it later with specific objects
new Circle(50,red)
.center()
.addPhysics({bounciness:.5});
new Rectangle(300,10,grey)
.reg(CENTER) // a must for all physics objects
.rot(20)
.pos(0,100,CENTER,BOTTOM)
.addPhysics(false); // false for static
// all sorts of features with physics
// such as impulse, force, spin, torque, follow
// bouyancy, contact, etc. see DOCS
EXAMPLES
- ZIM with Box2D - PHYSICS - ZIM TEN Example
- ZIM with Box2D - GOAL - ZIM TEN Example
- ZIM with Box2D - BEADS - ZIM TEN Example
- ZIM with Box2D - KEEP UP - ZIM TEN Example
- ZIM with Box2D - DRIVE - ZIM TEN Example
- Cat Food - Physics Blobs - ZIM 014 Example
- Fermenti - Physics Blobs - ZIM 014 Example
- ZIM with Box2D - ZIM Bits
- Soup with Box2D - ZIM Bits
- Bugs - three levels - ZIM Kids
- Falling Apple - CodePen (simple)
- Alone Droid 2 - ZIM (complex)
- Alone Droid - ZIM (complex)
- Pinball Sparks - CodePen
- Noodles Hair - CodePen
- Anti-grav - CodePen
- Polygon Pen - CodePen
- Data Vis - CodePen
- Maze - CodePen
- SideScroller - ZIM
- Valentines Puppets - ZIM
VIDEOS
- Follow - Code in Five Minutes
- Shoot - Code in Five Minutes
- Angry Birds A - Code in Five Minutes
- Angry Birds B - Code in Five Minutes
- Angry Birds C - Code in Five Minutes
- Angry Birds D - Code in Five Minutes
- Code in Five Minutes Files