Answers for "Point on a Plane between two points"
http://answers.unity.com/questions/1602880/point-on-a-plane-between-two-points.html
The latest answers for the question "Point on a Plane between two points"Answer by MomentsStudio
http://answers.unity.com/answers/1602911/view.html
It turns out getting the equation from the plane was not too hard.
Vector3 PointOnPlaneBetweenTwoPoints(Plane p, Vector3 a, Vector3 b){
Vector3 q = (b-a);
q.Normalize();
Vector3 planeEqation;
Vector3 pointOnPlane = p.ClosestPointOnPlane(Vector3.zero);
Vector3 normal = p.normal;
planeEqation = normal;
float offset = Vector3.Dot(pointOnPlane,normal);
Debug.Log(planeEqation);
float t = (offset-Vector3.Dot(a,planeEqation))/Vector3.Dot(q,planeEqation);
return a+(q*t);
}
If anyone else ever needs this feel free to use it.Sun, 17 Feb 2019 19:33:13 GMTMomentsStudio