Create a physics body by alpha channel?

Is possible to create physics body by alpha channel from texture?

Like this:

p.s.: I known that Defold support a few type of physics body: box, sphere, tilemap and triangle.

1 Like

No, I’m afraid that’s not possible.

I read in manual that Defold is able to generate convex shapes from tilesource by alpha channel. May be that’s my way… :thinking:

Yes, that can be one way to do it. But it might be a bit tricky to author the content.
Another is to simply create a collision object and add different shapes to fit the sprite.

1 Like