Does Phaser 3 have any geom with holes inside?
holes = circle ?
You can make several geom.circle inside your geom and group them ?
Here is an example! A polygonal hole in a polygon
Only the second one, I guess.
Here is an example to make complex shapes: https://labs.phaser.io/edit.html?src=src/physics/matterjs/advanced%20shape%20creation.js
What form those shapes have is up to you.
But I don’t think phaser has these things already in it.
You can however make lines, rectangles and arcs (full arc = circle).
Do you mean with MatterJS? If so, then you will need to use the second picture from your example.
fromVertices(x, y, vertexSets [, options] [, flagInternal] [, removeCollinear] [, minimumArea])
Creates a body using the supplied vertices (or an array containing multiple sets of vertices) and adds it to the World. If the vertices are convex, they will pass through as supplied. Otherwise, if the vertices are concave, they will be decomposed. Note that this process is not guaranteed to support complex sets of vertices, e.g. ones with holes.
Tks for your help! I just want to create a game object polygon with hole inside and make it interactive (the hole cannot interact)