set alpha of physics bodies when using physics.setDrawMode("hybrid")

This may seem like a trivial issue, but it would actually help out a LOT, and I’m assuming that it would be fairly easy to implement.

When using

[lua]physics.setDrawMode(“hybrid”)[/lua]

it displays an overlay on all physics objects, so that you can see the actual shapes being used for collisions and etc.

As far as I’m aware, there is no way to set the alpha for these objects. I’m guessing the alpha is at least 50% (0.5). Depending on the number of items on the screen, and depending on the graphics (colors, complexity, etc.) sometimes it’s hard to see the actual physics bodies, or the opposite - sometimes it’s hard to see the graphics behind the overlays.

It would be very useful if we could pass an additional parameter to specify the level of alpha.

For example:

[lua]physics.setDrawMode(“hybrid”, { alpha = 0.2 } )[/lua]

or perhaps

[lua]physics.setHybridAlpha(0.2)[/lua]

or something similar. [import]uid: 49447 topic_id: 17386 reply_id: 317386[/import]