I have a solution that may work for you, It doesn’t involve rotating hit-boxes but this allows you to have pixel perfect collisions with animation. All you do is enable masks on your objects you want to have perfect pixel collision If you have animation through a spritemap you also add a small function inside your net.flashpunk.graphics.Image.as class.
This stuff would go into your objects you want to have ppc(pixel perfect collision) with a spritemap class.
protected var spriteMapExample:Spritemap = new Spritemap(SPRITEMAP_EXAMPLE, width, height);
protected var Example_Mask:Mask;
public function ExamplePlayer() {
Example_Mask = new Pixelmask(spriteMapExample.getBuffer());
mask = Example_Mask;
Then add this inside the Image.as
public function getBuffer():BitmapData {
return _buffer;
}
If you don’t need the animation in your collisions, say a static image. Don’t add the function into the Image.as
Just use the above code with an Image and not a spritemap!
protected var imageExample:Image = new Image(SPRITE_EXAMPLE);
protected var Example_Mask:Mask;
public function ExamplePlayer() {
Example_Mask = new Pixelmask(imageExample);
mask = Example_Mask;
Hope this helps/isn’t totally ignorant.