/ Published in: JavaScript

Adds a floor to previous example
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// create a ground level for things to hit var floor = Ti.UI.createView({ backgroundColor:'#fff', width:310, height:2, bottom:40 }); var b = world.addBody(floor, { density:12.0, friction:0.3, restitution:0.4, type:'static' });
URL: http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/
Comments
