Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity draw ray from one object to another

Debug.DrawRay(a.transform.position, (b.transform.position - a.transform.position) * maxDistance, Color.Green);
 
PREVIOUS NEXT
Tagged: #unity #draw #ray #object
ADD COMMENT
Topic
Name
5+2 =