Material - draw a line between two coordinates?

Hi guys,

I’m chiming in on this as I was experimenting and had some fun with the UE material functions and coordinate system transforms.

For this example I wanted to use the DrawLine-2D Material Function for drawing a circle in Polar coordinates. Since a line in Cartesian coordinates represents a circle in Polar coordinates.

And lo and behold. It worked directly out of the box.

Below is the material function “CartesianToPolarCoordinate2”:


I thought it was quite intersting, so I wanted to share this.

Br,

Roger