I'm trying to create a triangular billiard table. My question is how do I make a line in matter.js? This way, I can make 3 intersecting lines to create a triangle. Here's some stuff I've already tried:
Bodies.polygon(x,y,3), but then I can't place a billiard ball inside, due to collision detection.Bodies.rectangle(x, y, 1, 200); (3 times), but then realized that if I want to create different triangles (i.e., obtuse, acute, right, isosceles, etc.), this would require too much manual tuning.matter.vertices, but there's no examples of using it to create a line in the documentation! Closest thing I found was this GitHub issue, but I don't know what vertexSets is.Any help is appreciated.