Browsing articles tagged with " javascript"
Oct
21
2011

Get started with Box2d in Javascript

Box2d is a 2d physics simulation library written for C++ and ported to many languages including Javascript. From Box2d’s Website Box2D is a feature rich 2D rigid body physics engine, written in C++ by Erin Catto. It has been used in many games, including Crayon Physics Deluxe, winner of the 2008 Independant Game Festival Grand Prize. In this tutorial I am going to show you how to use the Box2d library to write a simple [...]

Oct
19
2011

Make a racing car using Box2d in javascript

Box2d is a physics 2d simulation library. Here we use the Box2d Javascript port from http://code.google.com/p/box2dweb/ The car shown here has 5 parts : 1. Body 2. 2 Front wheels connected to body using revolute joints. 3. 2 Rear wheels connected to body using prismatic joints with limits Watch Demo here : Demo Click first , and then use arrow keys to move the car Please upgrade your browser To move the car , force [...]