Special collision for object

Hello, i want to set collision for my object, not typical (square) but with edge of example purple element below:

ex

Sure, this is example, (background is transparent) i wanna know is possibility to set other collision from json/image or other source for my object and how to do.

I will be grateful for help, because I am completely new with using Phaser, thanks :slight_smile:

Which physics engine are you using in your game? If it’s Arcade, keep in mind that it only supports rectangular and circar bounding boxes (any other shape would require you to roll your own collision detection). For something more advanced, you can take a look at Matter physics. If you’re already using Matter, check the examples to see how to create polygonal bodies.

1 Like