Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

object escape player unity

Vector3 dir = transform.position - Target.position;
transform.Translate(dir * moveSpeed * Time.deltaTime);
 
PREVIOUS NEXT
Tagged: #object #escape #player #unity
ADD COMMENT
Topic
Name
8+9 =