Navigation for the ZIM JavaScript Canvas Framework

AboutExamplesLearnEditorCodeDocsDevsGold
PHYSICS LIBRARY

ZIM Physics with integrated Box2D for forces, torque, collision, bouyancy, etc.

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
ZIM Physics Examples

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


ZIM Physics with puppet effect!


EXAMPLES

VIDEOS