Answers for "arc object's position using sin"
http://answers.unity.com/questions/287189/arc-objects-position-using-sin.html
The latest answers for the question "arc object's position using sin"Answer by Owen-Reynolds
http://answers.unity.com/answers/287237/view.html
o The math keys of off the angle going from 0 to 180. To get it to take 2 seconds, set the angle to: `180*timePassed/2`. Check: when `timePassed` is 2, 180*2/2 = 180.
o Real trig uses radians, not degrees, so before you use sin you have to convert by multiplying the angle by `Math.DegToRad` (which is really just 2PI/360.)
o To get the time that passed, grab the current time, and count from there:
var startTime : float;
// In Start:
startTime = Time.time; // Grab the time the shot started
// In Update:
var timePassed : float = Time.time - startTime;
The you can use `timePassed` and the 2-second angle in radians in your sin function. Of course, lots of other ways to write the same thing.Fri, 20 Jul 2012 03:36:18 GMTOwen-Reynolds