/ Published in: JavaScript
Now we tilt the floor to be able to let objects bounce down the "hill"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var b = world.addBody(floor, { density:12.0, friction:0.3, restitution:0.4, type:'static' }); b.setAngle(85);
URL: http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/