View Single Post
02-12-14, 05:35 PM   #29
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
Your English explaining this is much better than I could explain in any other language. :-)

Since you say that you have to place the buttons in a fixed interval on the path, why can't you just compute the position on the path for where the button is to be placed, and then compute the tangent from that point to determine the angle?

Personally I think you will run into problems for a wide variety of curves because, for example, if the curve looks like a U the buttons could hit each other in the bottom of the U. And if you were trying to evaluate the Y position from an X position, for example, you would have problems with the U because of the vertical aspects, and with a C because of more than one X value. You might need to use some complicated math to break apart your curve into smaller "straight lines" to attempt to get the right locations.
  Reply With Quote