I’m trying to hack some modifications to the built in jsui 3ddial, and my JS and orthogonal math are both not that great.
I would like to limit the range of the dial to just 270 degrees, like the built in Max dial object defaults to. I’ve manged to get the background sphere and foreground arc to draw the way I want them to be drawn, but I can’t figure out how to get the arc outline to be right. Here’s the relevant bit of code – can someone help? Please also see image:
var width = box.rect – box.rect;