Comments and answers for "Find intersecting points between vectors"
http://answers.unity.com/questions/1505029/find-intersecting-points-between-vectors.html
The latest comments and answers for the question "Find intersecting points between vectors"Comment by Paperfrog on Paperfrog's comment
http://answers.unity.com/comments/1505425/view.html
Took away my old answer, found out a minor mistake by me, works like a charm! Thanks a lot!Sat, 12 May 2018 17:45:09 GMTPaperfrogComment by iJuan on iJuan's answer
http://answers.unity.com/comments/1505423/view.html
Will check it in a while. Both vectors are 2D,right? And they are all centered in the origin? That math will only work if your center is the originSat, 12 May 2018 17:41:47 GMTiJuanAnswer by iJuan
http://answers.unity.com/answers/1505240/view.html
I'll just give you the code and hope not to have missed anything lol
Vector2 V1;
Vector2 V2;
float const1;
float const2;
Vector2 U1 = V1 / V1.length() * const1;
Vector2 U2 = V2 / V2.length() * const2;
float t = ((U1.y + U2.y) * V2.y/V2.x + U2.x + U1.x)/(V1.y - V1.x * V2.y / V2.x);
Vector2 point = t * V1 + //If it doesn't works, set this to -
new Vector2(V1.y, -V1.x) * const1 / V1.length();
I do really hope I've not missed anything...Sat, 12 May 2018 01:06:25 GMTiJuanComment by iJuan
http://answers.unity.com/comments/1505230/view.html
@MacDx That wouldn't help, he wants the intersection of two vectors which origins moves in a lineSat, 12 May 2018 00:14:41 GMTiJuanComment by MacDx
http://answers.unity.com/comments/1505224/view.html
Gareth Rees' answer to this post on stackoverflow describes the math step by step, to find if 2 vectors are intersecting (and at what point).
https://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersectFri, 11 May 2018 23:31:09 GMTMacDx