How to add my own physics shape? (lines)

Hi, I want to add collision between line segments and aabb, does is possible by something like a home made plugin?
NOTE: I want make this in the arcade phsyics only.

You can use

Phaser.Geom.Intersects.LineToRectangle(line, sprite.body)
1 Like

Cool! I’ll use it.