Author Topic: Drawing concave shapes with Box2D in Flixel-Flash  (Read 1889 times)


  • Member
  • **
  • Posts: 35
  • Karma: +1/-0
  • ~.^ wut you say?
    • View Profile
    • the rant
Today someone asked me if I could share the code for some box2D flixel experiments I did some time ago, so I did. I thought this might help others here too, so I'm posting it here. The code is *not* bug free nor is it commented that well, but it won't be too hard to read through. The box2D FlxSprite and FlxTileBlock implementation for Flixel is more or less the same as the flashgamedojo tutorial. The polygon class and the box2d polygon class is what is new.

Drawing shapes with Box2D in Flixel

Drawing shapes with Box2D in Flash

samples and code: