All examples By author By category About

bricof

Path-Line Reflection

This example builds on the previous Path-Line Intersection block by picking the path-line intersection that is closest to the line's starting point, computing the angle of intersection and the angle of reflection, and then drawing a reflection line. See the Bottled Gas Animation block for an example that uses this functionality.