Answer the question
In order to leave comments, you need to log in
How to “fly around” other objects while moving?
Here I have 2 objects (both have colliders), I send the 1st object to the 2nd
if(Vector3.Distance(ObjA.transform.position, ObjB.transform.position) > 0.01f){
ObjA.transform.position = Vector3.MoveTowards(ObjA.transform.position, ObjB.transform.position, 5f * Time.deltaTime);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question