Can't set fill color of polygon shape?

Hi there,

I’ve searched exhaustively but haven’t found a solution or an answer to this.

I’ve defined a custom shape and used that as a physics object (the display object is a series of lines appended to each other).

I’d like to set a fill color for the physics object, not unlike those seen on the debug/hybrid physics draw mode.

Is it possible to this?? I feel like it must be given that the debugdraw mode can do it.

Any insight would be helpful,

Thanks,

Nick [import]uid: 7472 topic_id: 30129 reply_id: 330129[/import]

Since you know the points that define the polygon you can use some polygon fill function such as the one given here (called polygonFill() ):

http://developer.coronalabs.com/code/maths-library

But note that this is quite a memory eater :slight_smile: [import]uid: 145398 topic_id: 30129 reply_id: 123880[/import]

Since you know the points that define the polygon you can use some polygon fill function such as the one given here (called polygonFill() ):

http://developer.coronalabs.com/code/maths-library

But note that this is quite a memory eater :slight_smile: [import]uid: 145398 topic_id: 30129 reply_id: 123880[/import]