Posted By

lspellman on 12/21/11


Tagged

Titanium Appcelerator Box2D


Versions (?)

Titanium Appcelerator Box2d simple example part 3


 / Published in: JavaScript
 

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

Now we tilt the floor to be able to let objects bounce down the "hill"

  1. var b = world.addBody(floor, {
  2. density:12.0,
  3. friction:0.3,
  4. restitution:0.4,
  5. type:'static'
  6. });
  7.  
  8. b.setAngle(85);

Report this snippet  

You need to login to post a comment.