Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to compare distance between 2 objects unity

float distance = Vector3.Distance (object1.transform.position, object2.transform.position);
 
PREVIOUS NEXT
Tagged: #compare #distance #objects #unity
ADD COMMENT
Topic
Name
4+5 =