I'm trying to use box2d in my Heaps.io project, compiled for HashLink. The compilation fails because of the usage of flash.display.Sprite in B2DebugDraw.
Since I probably don't need debug draw I was wondering if we can wrap this code around a compile flag (using #if swf or maybe a custom debug_draw flag).
I'm pretty new to Haxe, but since this seems like an easy PR I could look into it if you like the idea.
I'm trying to use box2d in my Heaps.io project, compiled for HashLink. The compilation fails because of the usage of
flash.display.SpriteinB2DebugDraw.Since I probably don't need debug draw I was wondering if we can wrap this code around a compile flag (using
#if swfor maybe a customdebug_drawflag).I'm pretty new to Haxe, but since this seems like an easy PR I could look into it if you like the idea.