This is kind of interesting. I used three boxes to build a right triangle. Each box is 3px high (or wide) and I adjusted the lengths to fit. I set the slant (hypotenuse) to Static in the Physics Inspector. Then I placed the triangle in a “Group”.
I have a ball that has the Physics set to full, when it hits the triangle it will follow the slope - cool!
The good thing is you get a true triangle without a square container. The bad thing is I haven’t figured out a way to fill the color inside of the triangle, yet.
triangle-group.hype.zip (13.0 KB)
triangle-group copy.mp4 (45.9 KB)
EDITED: I used the border size/color hack to make the “Group” into a triangle and deleted the two legs (boxes) of the triangle. I kept the hypotenuse (slope), changed its background color to none and left it static in the Physics Inspector.
triangle-group2.hype.zip (12.6 KB)