By Lawrence
5 minutes
5 minutes
Walls From Points
Nothing keeps the ball on the table. A pinball table needs walls, and most of them are slanted. Typing a centre, a length and an angle for each slanted wall is how tables end up with gaps.
A wall is points
So a wall is a list of points instead. Each pair of points becomes one box. The box sits at the midpoint, it is as long as the distance between the points, and it is turned to lie along them.
Each box is also one wall thickness longer than the gap. That makes the boxes overlap where they meet.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.
$9one-time
=