- Join Date: 9/20/2010
- Posts: 330
- Member Details
I know it's some time since the last post (106 days) ^^ but since I stumped over this topic, others might as well. So to make a perfect half-circle as zenx1 says, use the form here:
middleHeight*(sine(distance%)*pi)
where middleHeight is the height you want the unit to have at the top-point. If you want that perfect half-circle, middleHeight should be the distance between startPoint and endPoint devided by two.
and distance% is how far the unit has already traveled according to the start-distance between the start point and end-point.
You just update this value as you move the unit from the start-point towards the end-point. The only value that should be modified is distance%, middleHeight is just a constant.
EDIT: Apparently the editor have decided to use American math-values, what a shame.. For this form, just replace PI by 180
Last edited by _ForgeUser5716300: Jun 1, 2011