Quantcast
Channel: Answers for "direct a raycast from point a to point b"
Browsing all 6 articles
Browse latest View live

Answer by brianturner

To get a vector from one position to another simply subtract the source from the destination. Vector3 fromPosition = source.transform.position; Vector3 toPosition = destination.transform.position;...

View Article



Answer by Eric5h5

Use [Linecast][1] instead of Raycast. [1]: http://docs.unity3d.com/Documentation/ScriptReference/Physics.Linecast.html

View Article

Answer by brianturner

To get a vector from one position to another simply subtract the source from the destination. Vector3 fromPosition = source.transform.position; Vector3 toPosition = destination.transform.position;...

View Article

Answer by Eric5h5

Use [Linecast][1] instead of Raycast. [1]: http://docs.unity3d.com/Documentation/ScriptReference/Physics.Linecast.html

View Article

Answer by brianturner

To get a vector from one position to another simply subtract the source from the destination. Vector3 fromPosition = source.transform.position; Vector3 toPosition = destination.transform.position;...

View Article


Answer by Eric5h5

Use [Linecast][1] instead of Raycast. [1]: http://docs.unity3d.com/Documentation/ScriptReference/Physics.Linecast.html

View Article
Browsing all 6 articles
Browse latest View live




Latest Images