So I have a line (or a few lines) that are defined by a list of points. This list is generated and drawn in update()
on my scene using the graphics object. Each line that is created by that list is either perfectly horizontal or perfectly vertical. I want to add a collider between the line determined by each of those points and a game object. Is there a way for arcade physics to do this?
You can use physics-enabled Zone objects, 1px wide or 1px tall.
reference please