Return to Snippet

Revision: 54371
at December 21, 2011 18:10 by lspellman


Initial Code
// 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'
});

Initial URL
http://lancespellman.com/2011/12/20/cool-box2d-stuff-with-appcelerator-titanium/

Initial Description
Adds a floor to previous example

Initial Title
Titanium Appcelerator Box2d simple example part 2

Initial Tags


Initial Language
JavaScript