Answers for "Getting the distance in a known direction"
http://answers.unity.com/questions/1656240/getting-the-distance-in-a-known-direction.html
The latest answers for the question "Getting the distance in a known direction"Answer by JonPQ
http://answers.unity.com/answers/1656275/view.html
Distance from point to a line...
Define your wall, by any point on the wall, and a vector along its edge. 'ray'
float distance = Vector3.Cross(ray.direction, myPoint - ray.originPoint).magnitude;Sat, 10 Aug 2019 00:01:47 GMTJonPQAnswer by sacredgeometry
http://answers.unity.com/answers/1656249/view.html
###Trigonometry
> sin(theta) = opposite / hypotenuse
or
> hypotenuse * sin(theta) = opposite
----------
Solve for the opposite. (If thats wrong ... its been a long time since I did trig in school but its on the internet so you can double check)Fri, 09 Aug 2019 22:21:30 GMTsacredgeometry