Answers for "Extending a vector?"
http://answers.unity.com/questions/1139633/extending-a-vector.html
The latest answers for the question "Extending a vector?"Answer by toddisarockstar
http://answers.unity.com/answers/1153999/view.html
you can simply subtract two vector threes to get direction. then simply add it to go past your second point.
var heading:Vector3;
var howfarpas:float;
howfarpast=.5;
var yournewspot:Vector3;
heading = target.position - player.position;
heading=heading*howfarpast;
yournewspot = target.position+heading;Sat, 12 Mar 2016 17:10:43 GMTtoddisarockstarAnswer by 5c4r3cr0w
http://answers.unity.com/answers/1153462/view.html
Okay lets say bigger circle has c1 center and smaller circle has center c2. So the direction will be c2 - c1 . Now you need to normalize vector so the magnitude becomes 1 and then multiply it with any digit so it can be extended to your desired position.
Here is some code :
public Transform c1, c2, res;
public float unit;
Vector3 result;
void Start ()
{
result = c2.position - c1.position;
res.position = result.normalized;
}
void Update ()
{
result = res.position * unit;
Debug.DrawRay (c1.position, result);
}
Tweak the value of unit so you get desired results.
Hope this helpsSat, 12 Mar 2016 14:43:10 GMT5c4r3cr0wAnswer by Guhanesh
http://answers.unity.com/answers/1140003/view.html
//Let the bigger circle centre position be A and smaller circle position be B and Extended
// position be C
public float float ExtenDis=5;
Vector3 normVector = (A.position-B.position).normalized;
B.position=B.position*normVector*ExtenDis;Wed, 10 Feb 2016 12:09:09 GMTGuhaneshAnswer by mikelo
http://answers.unity.com/answers/1139988/view.html
Multiply your vector by a scalar. Check [this][1].
Vector3 extended_vector = your_vector * (float);
To extend it to a known magnitude, you can first normalize your original vector:
your_vector.Normalize();
Vector3 extended_vector = your_vector * the_magnitude_you_want;
[1]: https://www.khanacademy.org/math/linear-algebra/vectors_and_spaces/vectors/v/multiplying-vector-by-scalarWed, 10 Feb 2016 11:24:06 GMTmikelo